From b178229839faabc14ece8e27e40d1ce3b5d939ff Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 11 Jan 2024 17:27:01 +0100 Subject: use showError in TransferOwnershipDialogue Signed-off-by: Simon L --- apps/files/src/components/TransferOwnershipDialogue.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue index 21d172ede9a..e7cecb5224c 100644 --- a/apps/files/src/components/TransferOwnershipDialogue.vue +++ b/apps/files/src/components/TransferOwnershipDialogue.vue @@ -33,7 +33,6 @@ {{ t('files', 'Change') }} - {{ directoryPickerError }}

@@ -65,7 +63,7 @@ import axios from '@nextcloud/axios' import debounce from 'debounce' import { generateOcsUrl } from '@nextcloud/router' -import { getFilePickerBuilder, showSuccess } from '@nextcloud/dialogs' +import { getFilePickerBuilder, showSuccess, showError } from '@nextcloud/dialogs' import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js' import Vue from 'vue' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' @@ -147,6 +145,7 @@ export default { logger.error(`Selecting object for transfer aborted: ${error.message || 'Unknown error'}`, { error }) this.directoryPickerError = error.message || t('files', 'Unknown error') + showError(this.directoryPickerError) }) }, async findUser(query) { @@ -212,6 +211,7 @@ export default { } else { this.submitError = error.message || t('files', 'Unknown error') } + showError(this.submitError) }) }, }, -- cgit v1.2.3