3838 <SystemTags v-if =" isSystemTagsEnabled && showTagsDefault"
3939 v-show =" showTags"
4040 :disabled =" !fileInfo?.canEdit()"
41- :file-id =" fileInfo.id"
42- @has-tags =" value => showTags = value" />
41+ :file-id =" fileInfo.id" />
4342 <LegacyView v-for =" view in views"
4443 :key =" view.cid"
4544 :component =" view"
9392 </template >
9493 </NcAppSidebar >
9594</template >
96- <script >
97- import { getCurrentUser } from ' @nextcloud/auth'
98- import { getCapabilities } from ' @nextcloud/capabilities'
99- import { showError } from ' @nextcloud/dialogs'
95+ <script lang="ts">
96+ import { davRemoteURL , davRootPath , File , Folder , formatFileSize } from ' @nextcloud/files'
97+ import { defineComponent } from ' vue'
10098import { emit , subscribe , unsubscribe } from ' @nextcloud/event-bus'
101- import { File , Folder , davRemoteURL , davRootPath , formatFileSize } from ' @nextcloud/files'
10299import { encodePath } from ' @nextcloud/paths'
100+ import { fetchNode } from ' ../services/WebdavClient.ts'
103101import { generateUrl } from ' @nextcloud/router'
104- import { ShareType } from ' @nextcloud/sharing'
102+ import { getCapabilities } from ' @nextcloud/capabilities'
103+ import { getCurrentUser } from ' @nextcloud/auth'
105104import { mdiStar , mdiStarOutline } from ' @mdi/js'
106- import { fetchNode } from ' ../services/WebdavClient.ts '
107- import axios from ' @nextcloud/axios '
105+ import { ShareType } from ' @nextcloud/sharing '
106+ import { showError } from ' @nextcloud/dialogs '
108107import $ from ' jquery'
108+ import axios from ' @nextcloud/axios'
109109
110110import NcAppSidebar from ' @nextcloud/vue/dist/Components/NcAppSidebar.js'
111111import NcActionButton from ' @nextcloud/vue/dist/Components/NcActionButton.js'
@@ -120,7 +120,7 @@ import SidebarTab from '../components/SidebarTab.vue'
120120import SystemTags from ' ../../../systemtags/src/components/SystemTags.vue'
121121import logger from ' ../logger.ts'
122122
123- export default {
123+ export default defineComponent ( {
124124 name: ' Sidebar' ,
125125
126126 components: {
@@ -464,7 +464,10 @@ export default {
464464 * Toggle the tags selector
465465 */
466466 toggleTags() {
467- this .showTagsDefault = this .showTags = ! this .showTags
467+ // toggle
468+ this .showTags = ! this .showTags
469+ // save the new state
470+ this .setShowTagsDefault (this .showTags )
468471 },
469472
470473 /**
@@ -585,7 +588,7 @@ export default {
585588 this .hasLowHeight = document .documentElement .clientHeight < 1024
586589 },
587590 },
588- }
591+ })
589592 </script >
590593<style lang="scss" scoped>
591594.app-sidebar {
0 commit comments