diff options
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/actions/deleteAction.ts | 4 | ||||
-rw-r--r-- | apps/files/src/actions/moveOrCopyAction.ts | 6 | ||||
-rw-r--r-- | apps/files/src/newMenu/newFolder.ts | 3 |
3 files changed, 1 insertions, 12 deletions
diff --git a/apps/files/src/actions/deleteAction.ts b/apps/files/src/actions/deleteAction.ts index 3e9e441a63c..fa4fdfe8cdc 100644 --- a/apps/files/src/actions/deleteAction.ts +++ b/apps/files/src/actions/deleteAction.ts @@ -2,10 +2,8 @@ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -import { showInfo } from '@nextcloud/dialogs' import { Permission, Node, View, FileAction } from '@nextcloud/files' import { loadState } from '@nextcloud/initial-state' -import { translate as t } from '@nextcloud/l10n' import PQueue from 'p-queue' import CloseSvg from '@mdi/svg/svg/close.svg?raw' @@ -64,7 +62,6 @@ export const action = new FileAction({ // If the user cancels the deletion, we don't want to do anything if (confirm === false) { - showInfo(t('files', 'Deletion cancelled')) return null } @@ -88,7 +85,6 @@ export const action = new FileAction({ // If the user cancels the deletion, we don't want to do anything if (confirm === false) { - showInfo(t('files', 'Deletion cancelled')) return Promise.all(nodes.map(() => null)) } diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts index af68120bb1b..06e32c98090 100644 --- a/apps/files/src/actions/moveOrCopyAction.ts +++ b/apps/files/src/actions/moveOrCopyAction.ts @@ -158,7 +158,6 @@ export const handleCopyMoveNodeTo = async (node: Node, destination: Folder, meth } } catch (error) { // User cancelled - showError(t('files', 'Move cancelled')) return } } @@ -330,7 +329,6 @@ export const action = new FileAction({ return false } if (result === false) { - showInfo(t('files', 'Cancelled move or copy of "{filename}".', { filename: node.displayname })) return null } @@ -352,10 +350,6 @@ export const action = new FileAction({ const result = await openFilePickerForAction(action, dir, nodes) // Handle cancellation silently if (result === false) { - showInfo(nodes.length === 1 - ? t('files', 'Cancelled move or copy of "{filename}".', { filename: nodes[0].displayname }) - : t('files', 'Cancelled move or copy operation'), - ) return nodes.map(() => null) } diff --git a/apps/files/src/newMenu/newFolder.ts b/apps/files/src/newMenu/newFolder.ts index bc82d389e54..f0f854d2801 100644 --- a/apps/files/src/newMenu/newFolder.ts +++ b/apps/files/src/newMenu/newFolder.ts @@ -8,7 +8,7 @@ import { basename } from 'path' import { emit } from '@nextcloud/event-bus' import { getCurrentUser } from '@nextcloud/auth' import { Permission, Folder } from '@nextcloud/files' -import { showError, showInfo, showSuccess } from '@nextcloud/dialogs' +import { showError, showSuccess } from '@nextcloud/dialogs' import { translate as t } from '@nextcloud/l10n' import axios from '@nextcloud/axios' @@ -51,7 +51,6 @@ export const entry = { async handler(context: Folder, content: Node[]) { const name = await newNodeName(t('files', 'New folder'), content) if (name === null) { - showInfo(t('files', 'New folder creation cancelled')) return } try { |