summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2024-01-16 21:59:51 +0100
committerGitHub <noreply@github.com>2024-01-16 21:59:51 +0100
commitaba6e3c1ad0ad62708412b693a1ae42b14746780 (patch)
tree5725a4ef08478faa527c6f4e86694beba9e74c9a /apps
parentf0a6c4429d45848846eed4ea8f3e67ec5aa33e53 (diff)
parent07540d543311daaf951d7984c8af6a08dbde7148 (diff)
downloadnextcloud-server-aba6e3c1ad0ad62708412b693a1ae42b14746780.tar.gz
nextcloud-server-aba6e3c1ad0ad62708412b693a1ae42b14746780.zip
Merge pull request #42851 from nextcloud/backport/42720/stable28
[stable28] use showError in TransferOwnershipDialogue
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/components/TransferOwnershipDialogue.vue6
1 files changed, 3 insertions, 3 deletions
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 @@
<NcButton v-else @click.prevent="start">
{{ t('files', 'Change') }}
</NcButton>
- <span class="error">{{ directoryPickerError }}</span>
</p>
<p class="new-owner-row">
<label for="targetUser">
@@ -55,7 +54,6 @@
:disabled="!canSubmit">
{{ submitButtonText }}
</NcButton>
- <span class="error">{{ submitError }}</span>
</p>
</form>
</div>
@@ -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)
})
},
},