Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/files/src/components/TransferOwnershipDialogue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -55,7 +54,6 @@
:disabled="!canSubmit">
{{ submitButtonText }}
</NcButton>
<span class="error">{{ submitError }}</span>
</p>
</form>
</div>
Expand All @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -212,6 +211,7 @@ export default {
} else {
this.submitError = error.message || t('files', 'Unknown error')
}
showError(this.submitError)
})
},
},
Expand Down
Loading