modify name
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ Vue.prototype.$version = version.getVersion;
|
||||
Vue.prototype.$constants = {
|
||||
account: account
|
||||
};
|
||||
Vue.prototype.$utils = utils;
|
||||
Vue.prototype.$utilities = utils;
|
||||
Vue.prototype.$settings = settings;
|
||||
Vue.prototype.$getDefaultLanguage = getDefaultLanguage;
|
||||
Vue.prototype.$getAllLanguages = getAllLanguages;
|
||||
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (self.$utils.isString(data.result.token)) {
|
||||
if (self.$utilities.isString(data.result.token)) {
|
||||
self.$user.updateTokenAndUserInfo(data.result);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ export default {
|
||||
for (let i = 0; i < allAccountCategories.length; i++) {
|
||||
const accountCategory = allAccountCategories[i];
|
||||
|
||||
if (this.$utils.isArray(this.accounts[accountCategory.id]) && this.accounts[accountCategory.id].length) {
|
||||
if (this.$utilities.isArray(this.accounts[accountCategory.id]) && this.accounts[accountCategory.id].length) {
|
||||
usedAccountCategories.push(accountCategory);
|
||||
}
|
||||
}
|
||||
@@ -98,7 +98,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
self.accounts = self.$utils.getCategorizedAccounts(data.result);
|
||||
self.accounts = self.$utilities.getCategorizedAccounts(data.result);
|
||||
}).catch(error => {
|
||||
self.loading = false;
|
||||
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
self.accounts = self.$utils.getCategorizedAccounts(data.result);
|
||||
self.accounts = self.$utilities.getCategorizedAccounts(data.result);
|
||||
}).catch(error => {
|
||||
done();
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
self.loading = false;
|
||||
const data = response.data;
|
||||
|
||||
if (!data || !data.success || !data.result || !self.$utils.isBoolean(data.result.enable)) {
|
||||
if (!data || !data.success || !data.result || !self.$utilities.isBoolean(data.result.enable)) {
|
||||
self.$alert('Unable to get current two factor authentication status', () => {
|
||||
router.back();
|
||||
});
|
||||
|
||||
@@ -242,11 +242,11 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (self.$utils.isString(data.result.newToken)) {
|
||||
if (self.$utilities.isString(data.result.newToken)) {
|
||||
self.$user.updateToken(data.result.newToken);
|
||||
}
|
||||
|
||||
if (self.$utils.isObject(data.result.user)) {
|
||||
if (self.$utilities.isObject(data.result.user)) {
|
||||
self.$user.updateUserInfo(data.result.user);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user