mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore-245] fix type getInstance function in modal service
This commit is contained in:
@@ -39,7 +39,7 @@ export class BsDownloaderService {
|
||||
|
||||
private constructor() {
|
||||
this.ipcService = IpcService.getInstance();
|
||||
this.modalService = ModalService.getInsance();
|
||||
this.modalService = ModalService.getInstance();
|
||||
this.bsVersionManager = BSVersionManagerService.getInstance();
|
||||
this.authService = AuthUserService.getInstance();
|
||||
this.progressBarService = ProgressBarService.getInstance();
|
||||
|
||||
@@ -36,7 +36,7 @@ export class BsModsManagerService {
|
||||
private constructor() {
|
||||
this.ipcService = IpcService.getInstance();
|
||||
this.progressBar = ProgressBarService.getInstance();
|
||||
this.modals = ModalService.getInsance();
|
||||
this.modals = ModalService.getInstance();
|
||||
this.notifications = NotificationService.getInstance();
|
||||
this.os = OsDiagnosticService.getInstance();
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export class BSVersionManagerService {
|
||||
|
||||
private constructor() {
|
||||
this.ipcService = IpcService.getInstance();
|
||||
this.modalService = ModalService.getInsance();
|
||||
this.modalService = ModalService.getInstance();
|
||||
this.notificationService = NotificationService.getInstance();
|
||||
this.progressBarService = ProgressBarService.getInstance();
|
||||
this.askAvailableVersions().then(() => this.askInstalledVersions());
|
||||
|
||||
@@ -34,7 +34,7 @@ export class MapsDownloaderService {
|
||||
public readonly progressBarStyle: CSSProperties = { zIndex: 100000, position: "fixed", bottom: "10px", right: 0 };
|
||||
|
||||
private constructor() {
|
||||
this.modals = ModalService.getInsance();
|
||||
this.modals = ModalService.getInstance();
|
||||
this.progressBar = ProgressBarService.getInstance();
|
||||
this.ipc = IpcService.getInstance();
|
||||
this.os = OsDiagnosticService.getInstance();
|
||||
|
||||
@@ -40,7 +40,7 @@ export class MapsManagerService {
|
||||
|
||||
private constructor() {
|
||||
this.ipcService = IpcService.getInstance();
|
||||
this.modal = ModalService.getInsance();
|
||||
this.modal = ModalService.getInstance();
|
||||
this.progressBar = ProgressBarService.getInstance();
|
||||
this.notifications = NotificationService.getInstance();
|
||||
this.config = ConfigurationService.getInstance();
|
||||
|
||||
@@ -10,7 +10,7 @@ export class ModalService {
|
||||
|
||||
private constructor() {}
|
||||
|
||||
public static getInsance() {
|
||||
public static getInstance() {
|
||||
if (!this.instance) {
|
||||
this.instance = new ModalService();
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ export class ModelsDownloaderService {
|
||||
|
||||
private constructor() {
|
||||
this.ipc = IpcService.getInstance();
|
||||
this.modal = ModalService.getInsance();
|
||||
this.modal = ModalService.getInstance();
|
||||
this.progress = ProgressBarService.getInstance();
|
||||
|
||||
this._currentDownload$.pipe(filter(v => !!v)).subscribe(model => this.downloadModel(model));
|
||||
|
||||
@@ -38,7 +38,7 @@ export class ModelsManagerService {
|
||||
private constructor() {
|
||||
this.ipc = IpcService.getInstance();
|
||||
this.versionFolderLinked = VersionFolderLinkerService.getInstance();
|
||||
this.modalService = ModalService.getInsance();
|
||||
this.modalService = ModalService.getInstance();
|
||||
this.progressBar = ProgressBarService.getInstance();
|
||||
this.notifications = NotificationService.getInstance();
|
||||
this.config = ConfigurationService.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user