diff options
author | Mario Danic <mario@lovelyhq.com> | 2020-02-06 21:41:21 +0100 |
---|---|---|
committer | Mario Danic <mario@lovelyhq.com> | 2020-02-07 11:51:41 +0100 |
commit | d0e3255545f3c2b87752dde2cf56ef2547d92e83 (patch) | |
tree | b8ae7620111b0c377764c5dcd3e2483facff80c6 /apps/settings/src | |
parent | fc18116715e62f777074111a8d7a3a52601c2cef (diff) | |
download | nextcloud-server-d0e3255545f3c2b87752dde2cf56ef2547d92e83.tar.gz nextcloud-server-d0e3255545f3c2b87752dde2cf56ef2547d92e83.zip |
Add featured category
Signed-off-by: Mario Danic <mario@lovelyhq.com>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/components/AppList.vue | 5 | ||||
-rw-r--r-- | apps/settings/src/views/Apps.vue | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/apps/settings/src/components/AppList.vue b/apps/settings/src/components/AppList.vue index 5a0e570742f..ec57d4b75aa 100644 --- a/apps/settings/src/components/AppList.vue +++ b/apps/settings/src/components/AppList.vue @@ -146,6 +146,9 @@ export default { if (this.category === 'updates') { return apps.filter(app => app.update) } + if (this.category === 'featured') { + return apps.filter(app => app.level === 200) + } // filter app store categories return apps.filter(app => { return app.appstore && app.category !== undefined @@ -179,7 +182,7 @@ export default { return !this.useListView && !this.useBundleView }, useListView() { - return (this.category === 'installed' || this.category === 'enabled' || this.category === 'disabled' || this.category === 'updates') + return (this.category === 'installed' || this.category === 'enabled' || this.category === 'disabled' || this.category === 'updates' || this.category === 'featured') }, useBundleView() { return (this.category === 'app-bundles') diff --git a/apps/settings/src/views/Apps.vue b/apps/settings/src/views/Apps.vue index c125edcb93c..6afdb2536aa 100644 --- a/apps/settings/src/views/Apps.vue +++ b/apps/settings/src/views/Apps.vue @@ -64,6 +64,12 @@ <!-- App store categories --> <template v-if="settings.appstoreEnabled"> <AppNavigationItem + id="app-category-featured" + :to="{ name: 'apps-category', params: { category: 'featured' } }" + icon="icon-favorite" + :title="t('settings', 'Featured apps')" /> + + <AppNavigationItem v-for="cat in categories" :key="'icon-category-' + cat.ident" :icon="'icon-category-' + cat.ident" |