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`) +}