From 3ea811bd7ab82f86eb268c056c64d5ec2210e849 Mon Sep 17 00:00:00 2001 From: Aman Desai <39585600+amandesai01@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:48:43 +0530 Subject: [PATCH] chore(extensions): fix on extension (#9972) --- .../extensions/Extension/Header.vue | 10 ++++++- .../nc-gui/components/extensions/Market.vue | 2 ++ .../extensions/Market/ExtensionsTab.vue | 14 +++++++++- .../nc-gui/components/extensions/Pane.vue | 1 + packages/nc-gui/composables/useExtensions.ts | 28 +++++++++++++------ .../nc-gui/extensions/data-exporter/index.vue | 9 +++++- 6 files changed, 53 insertions(+), 11 deletions(-) diff --git a/packages/nc-gui/components/extensions/Extension/Header.vue b/packages/nc-gui/components/extensions/Extension/Header.vue index 8676400abe..34a691b2a3 100644 --- a/packages/nc-gui/components/extensions/Extension/Header.vue +++ b/packages/nc-gui/components/extensions/Extension/Header.vue @@ -14,9 +14,12 @@ withDefaults(defineProps(), { isFullscreen: true, }) +const { $e } = useNuxtApp() + const { eventBus, getExtensionAssetsUrl, duplicateExtension, showExtensionDetails } = useExtensions() const { fullscreen, collapsed, extension, extensionManifest, activeError, showExpandBtn } = useExtensionHelperOrThrow() +const EXTENSION_ID = extension.value.extensionId; const titleInput = ref(null) @@ -65,6 +68,11 @@ const handleDuplicateExtension = async (id: string, open: boolean = false) => { }) } } + +const toggleFullScreen = () => { + fullscreen.value = true + $e(`c:extensions:${EXTENSION_ID}:full-screen`) +}