diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-21 15:48:37 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-23 16:53:27 +0200 |
commit | 3ed32ffbb4fda77e7860e8ae6ac7f6a1c4ca902b (patch) | |
tree | 28923dffa09ec40e474c4949e775dee7141c6270 /apps/files/src/components/FileEntryMixin.ts | |
parent | dea5559d35c1ecf1a26e658223a3bb051b253f57 (diff) | |
download | nextcloud-server-3ed32ffbb4fda77e7860e8ae6ac7f6a1c4ca902b.tar.gz nextcloud-server-3ed32ffbb4fda77e7860e8ae6ac7f6a1c4ca902b.zip |
refactor: Use composable for `currentView` and `views` to make it reactive when shared with other Vue apps
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src/components/FileEntryMixin.ts')
-rw-r--r-- | apps/files/src/components/FileEntryMixin.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/files/src/components/FileEntryMixin.ts b/apps/files/src/components/FileEntryMixin.ts index f0f63f9dd30..b9cc0398ef5 100644 --- a/apps/files/src/components/FileEntryMixin.ts +++ b/apps/files/src/components/FileEntryMixin.ts @@ -48,10 +48,6 @@ export default defineComponent({ }, computed: { - currentView(): View { - return this.$navigation.active as View - }, - currentDir() { // Remove any trailing slash but leave root slash return (this.$route?.query?.dir?.toString() || '/').replace(/^(.+)\/$/, '$1') |