aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-27 11:44:59 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-27 16:16:41 +0200
commitcd54f7c7f432e7a88f81c1d453798812edff0459 (patch)
treeea64c844770fd75d08df0e6ee121654e0742799f /apps/settings/src
parent4cfab4b838ed40dec200f7673992009896c69f16 (diff)
downloadnextcloud-server-cd54f7c7f432e7a88f81c1d453798812edff0459.tar.gz
nextcloud-server-cd54f7c7f432e7a88f81c1d453798812edff0459.zip
chore: upgrade typescript, eslint and fix lint
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/settings/src')
-rw-r--r--apps/settings/src/components/AppList.vue10
-rw-r--r--apps/settings/src/components/GroupListItem.vue7
-rw-r--r--apps/settings/src/components/PersonalInfo/shared/FederationControlAction.vue24
3 files changed, 19 insertions, 22 deletions
diff --git a/apps/settings/src/components/AppList.vue b/apps/settings/src/components/AppList.vue
index 234fde088e1..734c1952998 100644
--- a/apps/settings/src/components/AppList.vue
+++ b/apps/settings/src/components/AppList.vue
@@ -196,15 +196,13 @@ export default {
return (this.category === 'app-bundles')
},
allBundlesEnabled() {
- const self = this
- return function(id) {
- return self.bundleApps(id).filter(app => !app.active).length === 0
+ return (id) => {
+ return this.bundleApps(id).filter(app => !app.active).length === 0
}
},
bundleToggleText() {
- const self = this
- return function(id) {
- if (self.allBundlesEnabled(id)) {
+ return (id) => {
+ if (this.allBundlesEnabled(id)) {
return t('settings', 'Disable all')
}
return t('settings', 'Enable all')
diff --git a/apps/settings/src/components/GroupListItem.vue b/apps/settings/src/components/GroupListItem.vue
index 639811d1e39..b7c01ec284f 100644
--- a/apps/settings/src/components/GroupListItem.vue
+++ b/apps/settings/src/components/GroupListItem.vue
@@ -123,16 +123,15 @@ export default {
}
},
removeGroup(groupid) {
- const self = this
// TODO migrate to a vue js confirm dialog component
OC.dialogs.confirm(
t('settings', 'You are about to remove the group {group}. The users will NOT be deleted.', { group: groupid }),
t('settings', 'Please confirm the group removal '),
- function(success) {
+ (success) => {
if (success) {
- self.$store.dispatch('removeGroup', groupid)
+ this.$store.dispatch('removeGroup', groupid)
}
- }
+ },
)
},
},
diff --git a/apps/settings/src/components/PersonalInfo/shared/FederationControlAction.vue b/apps/settings/src/components/PersonalInfo/shared/FederationControlAction.vue
index 8290ece03c4..60fc6a6f639 100644
--- a/apps/settings/src/components/PersonalInfo/shared/FederationControlAction.vue
+++ b/apps/settings/src/components/PersonalInfo/shared/FederationControlAction.vue
@@ -87,18 +87,18 @@ export default {
</script>
<style lang="scss" scoped>
- .federation-actions__btn {
- &::v-deep p {
- width: 150px !important;
- padding: 8px 0 !important;
- color: var(--color-main-text) !important;
- font-size: 12.8px !important;
- line-height: 1.5em !important;
- }
+.federation-actions__btn {
+ &::v-deep p {
+ width: 150px !important;
+ padding: 8px 0 !important;
+ color: var(--color-main-text) !important;
+ font-size: 12.8px !important;
+ line-height: 1.5em !important;
}
+}
- .federation-actions__btn--active {
- background-color: var(--color-primary-element-light) !important;
- box-shadow: inset 2px 0 var(--color-primary-element) !important;
- }
+.federation-actions__btn--active {
+ background-color: var(--color-primary-element-light) !important;
+ box-shadow: inset 2px 0 var(--color-primary-element) !important;
+}
</style>