diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 10:40:53 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 12:00:33 +0300 |
commit | 3a31397ac29f71db5313ea0e819a1362a019b5cc (patch) | |
tree | c14a1b88ccf1c4a7c57b752314ceec9c0e38b183 /apps/settings/src/views | |
parent | a384b4a97a2a4444d8e2c831765dbf35c8da0db2 (diff) |
Use `babel-loader-exclude-node-modules-except`
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/settings/src/views')
-rw-r--r-- | apps/settings/src/views/Users.vue | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/settings/src/views/Users.vue b/apps/settings/src/views/Users.vue index 0e837979b85..95a8faf1516 100644 --- a/apps/settings/src/views/Users.vue +++ b/apps/settings/src/views/Users.vue @@ -235,26 +235,26 @@ export default { // Local settings showLanguages: { - get: function() { return this.getLocalstorage('showLanguages') }, - set: function(status) { + get() { return this.getLocalstorage('showLanguages') }, + set(status) { this.setLocalStorage('showLanguages', status) }, }, showLastLogin: { - get: function() { return this.getLocalstorage('showLastLogin') }, - set: function(status) { + get() { return this.getLocalstorage('showLastLogin') }, + set(status) { this.setLocalStorage('showLastLogin', status) }, }, showUserBackend: { - get: function() { return this.getLocalstorage('showUserBackend') }, - set: function(status) { + get() { return this.getLocalstorage('showUserBackend') }, + set(status) { this.setLocalStorage('showUserBackend', status) }, }, showStoragePath: { - get: function() { return this.getLocalstorage('showStoragePath') }, - set: function(status) { + get() { return this.getLocalstorage('showStoragePath') }, + set(status) { this.setLocalStorage('showStoragePath', status) }, }, @@ -276,7 +276,7 @@ export default { }, // mapping saved values to objects defaultQuota: { - get: function() { + get() { if (this.selectedQuota !== false) { return this.selectedQuota } @@ -286,7 +286,7 @@ export default { } return this.unlimitedQuota // unlimited }, - set: function(quota) { + set(quota) { this.selectedQuota = quota }, @@ -303,7 +303,7 @@ export default { ...this.settings, newUserSendEmail: value, }) - await axios.post(generateUrl(`/settings/users/preferences/newUser.sendEmail`), { value: value ? 'yes' : 'no' }) + await axios.post(generateUrl('/settings/users/preferences/newUser.sendEmail'), { value: value ? 'yes' : 'no' }) } catch (e) { console.error('could not update newUser.sendEmail preference: ' + e.message, e) } finally { @@ -428,9 +428,9 @@ export default { */ registerAction(icon, text, action) { this.externalActions.push({ - icon: icon, - text: text, - action: action, + icon, + text, + action, }) return this.externalActions }, |