mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
use showError in TransferOwnershipDialogue
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
b74a59b331
commit
b178229839
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue