Skip to content

Commit

Permalink
more linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitchessbee committed Mar 13, 2024
1 parent 139ccca commit 1ce8837
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/renderer/js/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import url from "node:url";
import {Menu, app, dialog, session} from "@electron/remote";
import * as remote from "@electron/remote";
import * as Sentry from "@sentry/electron/renderer";

import Sortable from "sortablejs";
import SortableJS from "sortablejs";

import type {Config} from "../../common/config-util.js";
import * as ConfigUtil from "../../common/config-util.js";
Expand Down Expand Up @@ -83,7 +82,7 @@ export class ServerManagerView {
tabIndex: number;
presetOrgs: string[];
preferenceView?: PreferenceView;
sortableSidebar: Sortable | null;
sortableSidebar: SortableJS | null;
constructor() {
this.$addServerButton = document.querySelector("#add-tab")!;
this.$tabsContainer = document.querySelector("#tabs-container")!;
Expand Down Expand Up @@ -239,9 +238,9 @@ export class ServerManagerView {
initSidebar(): void {
const showSidebar = ConfigUtil.getConfigItem("showSidebar", true);
this.toggleSidebar(showSidebar);
this.sortableSidebar = new Sortable(this.$tabsContainer, {
this.sortableSidebar = new SortableJS(this.$tabsContainer, {
animation: 150,
onEnd: (event: Sortable.SortableEvent) => {
onEnd: (event: SortableJS.SortableEvent) => {
// Update the domain order in the database
DomainUtil.updateDomainOrder(event.oldIndex ?? 0, event.newIndex ?? 0);

Expand Down

0 comments on commit 1ce8837

Please sign in to comment.