eslint --fix: added missing semicolons
This commit is contained in:
@@ -294,7 +294,7 @@ class AccountMenuCtrl extends PureCtrl {
|
||||
*/
|
||||
async clearDatabaseAndRewriteAllItems({ alternateUuids } = {}) {
|
||||
await this.storageManager.clearAllModels();
|
||||
await this.syncManager.markAllItemsDirtyAndSaveOffline(alternateUuids)
|
||||
await this.syncManager.markAllItemsDirtyAndSaveOffline(alternateUuids);
|
||||
}
|
||||
|
||||
destroyLocalData() {
|
||||
|
||||
@@ -16,7 +16,7 @@ class ActionsMenuCtrl extends PureCtrl {
|
||||
$onInit() {
|
||||
this.initProps({
|
||||
item: this.item
|
||||
})
|
||||
});
|
||||
this.loadExtensions();
|
||||
};
|
||||
|
||||
@@ -57,7 +57,7 @@ class ActionsMenuCtrl extends PureCtrl {
|
||||
await this.actionsManager.loadExtensionInContextOfItem(extension, this.props.item);
|
||||
this.setState({
|
||||
extensions: this.state.extensions
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
handleActionResult(action, result) {
|
||||
@@ -84,8 +84,8 @@ class ActionsMenuCtrl extends PureCtrl {
|
||||
label: subaction.label,
|
||||
subtitle: subaction.desc,
|
||||
spinnerClass: subaction.running ? 'info' : null
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export class ComponentModalCtrl {
|
||||
this.$element.remove();
|
||||
this.$scope.$destroy();
|
||||
if(this.onDismiss && this.onDismiss()) {
|
||||
this.onDismiss()(this.component)
|
||||
this.onDismiss()(this.component);
|
||||
}
|
||||
callback && callback();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class ComponentViewCtrl {
|
||||
});
|
||||
$scope.$on('ext-reload-complete', () => {
|
||||
this.reloadStatus(false);
|
||||
})
|
||||
});
|
||||
$scope.$on('$destroy', () => {
|
||||
this.destroy();
|
||||
});
|
||||
@@ -47,7 +47,7 @@ class ComponentViewCtrl {
|
||||
if(component === this.component && component.active) {
|
||||
this.reloadComponent();
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
registerComponentHandlers() {
|
||||
@@ -70,7 +70,7 @@ class ComponentViewCtrl {
|
||||
}
|
||||
this.$timeout(() => {
|
||||
this.handleActivation();
|
||||
})
|
||||
});
|
||||
},
|
||||
actionHandler: (component, action, data) => {
|
||||
if(action === 'set-size') {
|
||||
@@ -116,9 +116,9 @@ class ComponentViewCtrl {
|
||||
this.loading = false;
|
||||
}
|
||||
if(offlineRestricted) {
|
||||
this.error = 'offline-restricted'
|
||||
this.error = 'offline-restricted';
|
||||
} else if(hasUrlError) {
|
||||
this.error = 'url-missing'
|
||||
this.error = 'url-missing';
|
||||
} else {
|
||||
this.error = null;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ class ComponentViewCtrl {
|
||||
this.reloadThemeStatus();
|
||||
this.$timeout(() => {
|
||||
this.reloading = false;
|
||||
}, 500)
|
||||
}, 500);
|
||||
}
|
||||
|
||||
handleActivation() {
|
||||
@@ -195,7 +195,7 @@ class ComponentViewCtrl {
|
||||
this.loading = false;
|
||||
this.issueLoading = desktopError ? true : false;
|
||||
this.onLoad && this.onLoad(this.component);
|
||||
}, avoidFlickerTimeout)
|
||||
}, avoidFlickerTimeout);
|
||||
}
|
||||
|
||||
componentValueDidSet(component, prevComponent) {
|
||||
|
||||
@@ -38,7 +38,7 @@ class ConflictResolutionCtrl {
|
||||
this.modelManager.setItemToBeDeleted(this.item2);
|
||||
this.syncManager.sync().then(() => {
|
||||
this.applyCallback();
|
||||
})
|
||||
});
|
||||
this.dismiss();
|
||||
}
|
||||
});
|
||||
@@ -52,7 +52,7 @@ class ConflictResolutionCtrl {
|
||||
this.modelManager.setItemToBeDeleted(this.item1);
|
||||
this.syncManager.sync().then(() => {
|
||||
this.applyCallback();
|
||||
})
|
||||
});
|
||||
this.dismiss();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ class EditorMenuCtrl extends PureCtrl {
|
||||
this.syncManager = syncManager;
|
||||
this.state = {
|
||||
isDesktop: isDesktopApplication()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
$onInit() {
|
||||
@@ -29,7 +29,7 @@ class EditorMenuCtrl extends PureCtrl {
|
||||
this.setState({
|
||||
editors: editors,
|
||||
defaultEditor: defaultEditor
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
selectComponent(component) {
|
||||
@@ -42,7 +42,7 @@ class EditorMenuCtrl extends PureCtrl {
|
||||
}
|
||||
this.$timeout(() => {
|
||||
this.callback()(component);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
toggleDefaultForEditor(editor) {
|
||||
@@ -70,7 +70,7 @@ class EditorMenuCtrl extends PureCtrl {
|
||||
this.syncManager.sync();
|
||||
this.setState({
|
||||
defaultEditor: component
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
removeEditorDefault(component) {
|
||||
@@ -79,7 +79,7 @@ class EditorMenuCtrl extends PureCtrl {
|
||||
this.syncManager.sync();
|
||||
this.setState({
|
||||
defaultEditor: null
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
shouldDisplayRunningLocallyLabel(component) {
|
||||
|
||||
@@ -10,7 +10,7 @@ const Steps = {
|
||||
PasswordStep: 3,
|
||||
SyncStep: 4,
|
||||
FinishStep: 5
|
||||
}
|
||||
};
|
||||
|
||||
class PasswordWizardCtrl {
|
||||
/* @ngInject */
|
||||
@@ -95,12 +95,12 @@ class PasswordWizardCtrl {
|
||||
this.step++;
|
||||
this.initializeStep(this.step);
|
||||
this.isContinuing = false;
|
||||
}
|
||||
};
|
||||
const preprocessor = this.preprocessorForStep(this.step);
|
||||
if (preprocessor) {
|
||||
await preprocessor().then(next).catch(() => {
|
||||
this.isContinuing = false;
|
||||
})
|
||||
});
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
@@ -115,7 +115,7 @@ class PasswordWizardCtrl {
|
||||
this.showSpinner = false;
|
||||
this.continueTitle = DEFAULT_CONTINUE_TITLE;
|
||||
return success;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ class PasswordWizardCtrl {
|
||||
if (!response || response.error) {
|
||||
this.alertManager.alert({
|
||||
text: STRING_FAILED_PASSWORD_CHANGE
|
||||
})
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
||||
@@ -18,8 +18,8 @@ class PrivilegesAuthModalCtrl {
|
||||
this.privilegesManager.getSelectedSessionLength().then((length) => {
|
||||
this.$timeout(() => {
|
||||
this.selectedSessionLength = length;
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
this.privilegesManager.netCredentialsForAction(this.action).then((credentials) => {
|
||||
this.$timeout(() => {
|
||||
this.requiredCredentials = credentials.sort();
|
||||
@@ -77,7 +77,7 @@ class PrivilegesAuthModalCtrl {
|
||||
} else {
|
||||
this.failedCredentials = result.failedCredentials;
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
dismiss() {
|
||||
|
||||
@@ -59,7 +59,7 @@ class PrivilegesManagementModalCtrl {
|
||||
const privs = await this.privilegesManager.getPrivileges();
|
||||
this.$timeout(() => {
|
||||
this.privileges = privs;
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
checkboxValueChanged(action, credential) {
|
||||
|
||||
@@ -99,14 +99,14 @@ class RevisionPreviewModalCtrl {
|
||||
this.modelManager.setItemDirty(item);
|
||||
this.syncManager.sync();
|
||||
this.dismiss();
|
||||
}
|
||||
};
|
||||
|
||||
if (!asCopy) {
|
||||
this.alertManager.confirm({
|
||||
text: "Are you sure you want to replace the current note's contents with what you see in this preview?",
|
||||
destructive: true,
|
||||
onConfirm: run
|
||||
})
|
||||
});
|
||||
} else {
|
||||
run();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class SessionHistoryMenuCtrl {
|
||||
const history = this.sessionHistory.historyForItem(this.item);
|
||||
this.entries = history.entries.slice(0).sort((a, b) => {
|
||||
return a.item.updated_at < b.item.updated_at ? 1 : -1;
|
||||
})
|
||||
});
|
||||
this.history = history;
|
||||
}
|
||||
|
||||
@@ -54,10 +54,10 @@ class SessionHistoryMenuCtrl {
|
||||
this.sessionHistory.clearHistoryForItem(this.item).then(() => {
|
||||
this.$timeout(() => {
|
||||
this.reloadHistory();
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
clearAllHistory() {
|
||||
@@ -68,10 +68,10 @@ class SessionHistoryMenuCtrl {
|
||||
this.sessionHistory.clearAllHistory().then(() => {
|
||||
this.$timeout(() => {
|
||||
this.reloadHistory();
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
toggleDiskSaving() {
|
||||
@@ -79,9 +79,9 @@ class SessionHistoryMenuCtrl {
|
||||
this.sessionHistory.toggleDiskSaving().then(() => {
|
||||
this.$timeout(() => {
|
||||
this.diskEnabled = this.sessionHistory.diskEnabled;
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
if (!this.sessionHistory.diskEnabled) {
|
||||
this.alertManager.confirm({
|
||||
text: `Are you sure you want to save history to disk? This will decrease general
|
||||
@@ -89,7 +89,7 @@ class SessionHistoryMenuCtrl {
|
||||
if you experience any lagging.`,
|
||||
destructive: true,
|
||||
onConfirm: run
|
||||
})
|
||||
});
|
||||
} else {
|
||||
run();
|
||||
}
|
||||
@@ -99,7 +99,7 @@ class SessionHistoryMenuCtrl {
|
||||
this.sessionHistory.toggleAutoOptimize().then(() => {
|
||||
this.$timeout(() => {
|
||||
this.autoOptimize = this.sessionHistory.autoOptimize;
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,13 +33,13 @@ class SyncResolutionMenuCtrl {
|
||||
} else {
|
||||
this.status.success = true;
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
close() {
|
||||
this.$timeout(() => {
|
||||
this.closeFunction()();
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user