diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-22 16:45:42 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-11 16:02:34 +0100 |
commit | 1100e908b79ddecd1198c682ac3dcc41f2871122 (patch) | |
tree | 3f7e61648adcccaec1a5b6c7f67ab1c3b6c59b65 /apps/settings/src/components/AppList.vue | |
parent | 2b794b41ad0eb9610674fc44543006a9da9d624e (diff) | |
download | nextcloud-server-1100e908b79ddecd1198c682ac3dcc41f2871122.tar.gz nextcloud-server-1100e908b79ddecd1198c682ac3dcc41f2871122.zip |
feat(settings): Split account management and app store views into chunks
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/src/components/AppList.vue')
-rw-r--r-- | apps/settings/src/components/AppList.vue | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/apps/settings/src/components/AppList.vue b/apps/settings/src/components/AppList.vue index 324fa6b0537..320d6a60e95 100644 --- a/apps/settings/src/components/AppList.vue +++ b/apps/settings/src/components/AppList.vue @@ -139,6 +139,7 @@ </template> <script> +import { subscribe, unsubscribe } from '@nextcloud/event-bus' import AppItem from './AppList/AppItem.vue' import pLimit from 'p-limit' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' @@ -149,7 +150,19 @@ export default { AppItem, NcButton, }, - props: ['category'], + + props: { + category: { + type: String, + required: true, + }, + }, + + data() { + return { + search: '', + } + }, computed: { counter() { return this.apps.filter(app => app.update).length @@ -247,7 +260,24 @@ export default { } }, }, + + beforeDestroy() { + unsubscribe('nextcloud:unified-search.search', this.setSearch) + unsubscribe('nextcloud:unified-search.reset', this.resetSearch) + }, + + beforeCreate() { + subscribe('nextcloud:unified-search.search', this.setSearch) + subscribe('nextcloud:unified-search.reset', this.resetSearch) + }, + methods: { + setSearch(value) { + this.search = value + }, + resetSearch() { + this.search = '' + }, toggleBundle(id) { if (this.allBundlesEnabled(id)) { return this.disableBundle(id) |