fix: remove unused code
This commit is contained in:
@@ -29,7 +29,6 @@ class ApplicationViewCtrl extends PureViewCtrl {
|
|||||||
private showingDownloadStatus = false
|
private showingDownloadStatus = false
|
||||||
private uploadSyncStatus: any
|
private uploadSyncStatus: any
|
||||||
private lastAlertShownTimeStamp = 0;
|
private lastAlertShownTimeStamp = 0;
|
||||||
private showingInvalidSessionAlert = false;
|
|
||||||
|
|
||||||
/* @ngInject */
|
/* @ngInject */
|
||||||
constructor(
|
constructor(
|
||||||
@@ -126,8 +125,6 @@ class ApplicationViewCtrl extends PureViewCtrl {
|
|||||||
this.syncStatus = this.application!.getStatusService().removeStatus(this.syncStatus);
|
this.syncStatus = this.application!.getStatusService().removeStatus(this.syncStatus);
|
||||||
this.completedInitialSync = true;
|
this.completedInitialSync = true;
|
||||||
}
|
}
|
||||||
} else if (eventName === ApplicationEvent.InvalidSyncSession) {
|
|
||||||
this.showInvalidSessionAlert();
|
|
||||||
} else if (eventName === ApplicationEvent.LocalDatabaseReadError) {
|
} else if (eventName === ApplicationEvent.LocalDatabaseReadError) {
|
||||||
this.application!.alertService!.alert(
|
this.application!.alertService!.alert(
|
||||||
'Unable to load local database. Please restart the app and try again.'
|
'Unable to load local database. Please restart the app and try again.'
|
||||||
@@ -258,24 +255,6 @@ class ApplicationViewCtrl extends PureViewCtrl {
|
|||||||
this.application!.componentManager!.presentPermissionsDialog = this.presentPermissionsDialog;
|
this.application!.componentManager!.presentPermissionsDialog = this.presentPermissionsDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
showInvalidSessionAlert() {
|
|
||||||
/** Don't show repeatedly; at most 30 seconds in between */
|
|
||||||
const SHOW_INTERVAL = 30 * 1000;
|
|
||||||
if (
|
|
||||||
!this.showingInvalidSessionAlert &&
|
|
||||||
(Date.now() - this.lastAlertShownTimeStamp) > SHOW_INTERVAL
|
|
||||||
) {
|
|
||||||
this.lastAlertShownTimeStamp = Date.now();
|
|
||||||
this.showingInvalidSessionAlert = true;
|
|
||||||
setTimeout(async () => {
|
|
||||||
// await alertDialog({
|
|
||||||
// text: STRING_SESSION_EXPIRED
|
|
||||||
// });
|
|
||||||
this.showingInvalidSessionAlert = false;
|
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
addDragDropHandlers() {
|
addDragDropHandlers() {
|
||||||
/**
|
/**
|
||||||
* Disable dragging and dropping of files (but allow text) into main SN interface.
|
* Disable dragging and dropping of files (but allow text) into main SN interface.
|
||||||
|
|||||||
Reference in New Issue
Block a user