fix formatting

This commit is contained in:
Florian Schade committed 2020-12-11 15:18:20 +01:00
1 parent 648d2287a7
commit 3cf85fd163
1 file changed
+13 -10
+13 -10
View File
@@ -4,7 +4,7 @@
<template v-if="initialized"> <template v-if="initialized">
<oc-alert v-if="extensions.length === 0" variation="primary" no-close> <oc-alert v-if="extensions.length === 0" variation="primary" no-close>
<p class="uk-flex uk-flex-middle"> <p class="uk-flex uk-flex-middle">
<oc-icon name="info" class="oc-mr-s"/> <oc-icon name="info" class="oc-mr-s" />
<translate>No settings available</translate> <translate>No settings available</translate>
</p> </p>
</oc-alert> </oc-alert>
@@ -15,25 +15,25 @@
{{ selectedExtensionName }} {{ selectedExtensionName }}
</h1> </h1>
</div> </div>
<hr/> <hr />
</template> </template>
<template v-if="settingsValuesLoaded"> <template v-if="settingsValuesLoaded">
<settings-bundle <settings-bundle
v-for="bundle in selectedBundles" v-for="bundle in selectedBundles"
:key="'bundle-' + bundle.id" :key="'bundle-' + bundle.id"
:bundle="bundle" :bundle="bundle"
class="oc-mt" class="oc-mt"
/> />
</template> </template>
<div class="oc-mt" v-else> <div class="oc-mt" v-else>
<oc-loader :aria-label="$gettext('Loading personal settings')"/> <oc-loader :aria-label="$gettext('Loading personal settings')" />
<oc-alert :aria-hidden="true" varition="primary" no-close> <oc-alert :aria-hidden="true" varition="primary" no-close>
<p v-translate>Loading personal settings...</p> <p v-translate>Loading personal settings...</p>
</oc-alert> </oc-alert>
</div> </div>
</template> </template>
</template> </template>
<oc-loader v-else/> <oc-loader v-else />
</div> </div>
</div> </div>
</template> </template>
@@ -76,7 +76,10 @@ export default {
...mapMutations(['ADD_NAV_ITEM']), ...mapMutations(['ADD_NAV_ITEM']),
resetSelectedExtension () { resetSelectedExtension () {
if (this.extensions.length > 0) { if (this.extensions.length > 0) {
if (this.extensionRouteParam && this.extensions.includes(this.extensionRouteParam)) { if (
this.extensionRouteParam &&
this.extensions.includes(this.extensionRouteParam)
) {
this.selectedExtension = this.extensionRouteParam this.selectedExtension = this.extensionRouteParam
} else { } else {
this.selectedExtension = this.extensions[0] this.selectedExtension = this.extensions[0]
@@ -84,7 +87,7 @@ export default {
} }
}, },
resetMenuItems () { resetMenuItems () {
this.extensions.forEach(extension => { this.extensions.forEach((extension) => {
/* /*
* TODO: * TODO:
* a) set up a map with possible extensions and icons? * a) set up a map with possible extensions and icons?