diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-11-13 15:05:10 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-19 13:55:33 +0300 |
commit | ec01e0a790448fff38364f629a4de4edb5d465bf (patch) | |
tree | 8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /apps/settings/src/views/Apps.vue | |
parent | 5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff) |
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/settings/src/views/Apps.vue')
-rw-r--r-- | apps/settings/src/views/Apps.vue | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/apps/settings/src/views/Apps.vue b/apps/settings/src/views/Apps.vue index 2e0649f7f56..74b5fbde0fa 100644 --- a/apps/settings/src/views/Apps.vue +++ b/apps/settings/src/views/Apps.vue @@ -45,7 +45,7 @@ import { AppNavigation, AppNavigationItem, AppSidebar, - Content + Content, } from 'nextcloud-vue' import AppList from '../components/AppList' import Vue from 'vue' @@ -63,21 +63,21 @@ export default { AppSidebar, Content, AppDetails, - AppList + AppList, }, props: { category: { type: String, - default: 'installed' + default: 'installed', }, id: { type: String, - default: '' - } + default: '', + }, }, data() { return { - searchQuery: '' + searchQuery: '', } }, computed: { @@ -111,13 +111,13 @@ export default { // Map groups categories = categories.map(category => { - let item = {} + const item = {} item.id = 'app-category-' + category.ident item.icon = 'icon-category-' + category.ident item.classes = [] // empty classes, active will be set later item.router = { // router link to name: 'apps-category', - params: { category: category.ident } + params: { category: category.ident }, } item.text = category.displayName @@ -125,27 +125,27 @@ export default { }) // Add everyone group - let defaultCategories = [ + const defaultCategories = [ { id: 'app-category-your-apps', classes: [], router: { name: 'apps' }, icon: 'icon-category-installed', - text: t('settings', 'Your apps') + text: t('settings', 'Your apps'), }, { id: 'app-category-enabled', classes: [], icon: 'icon-category-enabled', router: { name: 'apps-category', params: { category: 'enabled' } }, - text: t('settings', 'Active apps') + text: t('settings', 'Active apps'), }, { id: 'app-category-disabled', classes: [], icon: 'icon-category-disabled', router: { name: 'apps-category', params: { category: 'disabled' } }, - text: t('settings', 'Disabled apps') - } + text: t('settings', 'Disabled apps'), + }, ] if (!this.settings.appstoreEnabled) { @@ -159,7 +159,7 @@ export default { icon: 'icon-download', router: { name: 'apps-category', params: { category: 'updates' } }, text: t('settings', 'Updates'), - utils: { counter: this.$store.getters.getUpdateCount } + utils: { counter: this.$store.getters.getUpdateCount }, }) } @@ -168,13 +168,13 @@ export default { classes: [], icon: 'icon-category-app-bundles', router: { name: 'apps-category', params: { category: 'app-bundles' } }, - text: t('settings', 'App bundles') + text: t('settings', 'App bundles'), }) categories = defaultCategories.concat(categories) // Set current group as active - let activeGroup = categories.findIndex(group => group.id === 'app-category-' + this.category) + const activeGroup = categories.findIndex(group => group.id === 'app-category-' + this.category) if (activeGroup >= 0) { categories[activeGroup].classes.push('active') } else { @@ -185,17 +185,17 @@ export default { id: 'app-developer-docs', classes: [], href: this.settings.developerDocumentation, - text: t('settings', 'Developer documentation') + ' ↗' + text: t('settings', 'Developer documentation') + ' ↗', }) // Return return categories - } + }, }, watch: { category: function(val, old) { this.setSearch('') - } + }, }, beforeMount() { this.$store.dispatch('getCategories') @@ -219,9 +219,9 @@ export default { hideAppDetails() { this.$router.push({ name: 'apps-category', - params: { category: this.category } + params: { category: this.category }, }) - } - } + }, + }, } </script> |