From 5d8133bb18e656e9fb8aae179c51e98953b7d883 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 3 May 2024 16:35:38 +0200 Subject: fix: Do not import styles that are already included in server bundle Signed-off-by: Ferdinand Thiessen --- apps/files/src/actions/moveOrCopyAction.ts | 1 - apps/files/src/actions/moveOrCopyActionUtils.ts | 2 -- apps/files/src/plugins/search/folderSearch.ts | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/files/src') diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts index 61be2d946ac..047aeed7c00 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -19,7 +19,6 @@ * along with this program. If not, see . * */ -import '@nextcloud/dialogs/style.css' import type { Folder, Node, View } from '@nextcloud/files' import type { IFilePickerButton } from '@nextcloud/dialogs' import type { FileStat, ResponseDataDetailed } from 'webdav' diff --git a/apps/files/src/actions/moveOrCopyActionUtils.ts b/apps/files/src/actions/moveOrCopyActionUtils.ts index 01614b14d8a..6de0e7eb408 100644 --- a/apps/files/src/actions/moveOrCopyActionUtils.ts +++ b/apps/files/src/actions/moveOrCopyActionUtils.ts @@ -20,8 +20,6 @@ * */ -import '@nextcloud/dialogs/style.css' - import type { Folder, Node } from '@nextcloud/files' import { Permission } from '@nextcloud/files' import PQueue from 'p-queue' diff --git a/apps/files/src/plugins/search/folderSearch.ts b/apps/files/src/plugins/search/folderSearch.ts index d5f164abb8f..17e8ecd61ea 100644 --- a/apps/files/src/plugins/search/folderSearch.ts +++ b/apps/files/src/plugins/search/folderSearch.ts @@ -25,7 +25,6 @@ import { getFilePickerBuilder } from '@nextcloud/dialogs'; import { imagePath } from '@nextcloud/router' import { translate as t } from '@nextcloud/l10n' import logger from '../../logger' -import '@nextcloud/dialogs/style.css' /** * Initialize the unified search plugin. @@ -33,7 +32,7 @@ import '@nextcloud/dialogs/style.css' function init() { const OCA = window.OCA if (!OCA.UnifiedSearch) { - return; + return } logger.info('Initializing unified search plugin: folder search from files app'); @@ -65,4 +64,4 @@ function init() { }) } -document.addEventListener('DOMContentLoaded', init); +document.addEventListener('DOMContentLoaded', init) -- cgit v1.2.3