Skip to content

Commit

Permalink
Merge pull request #42720 from nextcloud/enh/42592/use-notecard
Browse files Browse the repository at this point in the history
use showError in TransferOwnershipDialogue
  • Loading branch information
szaimen authored Jan 16, 2024
2 parents 5f0c406 + 3c54925 commit 5aa799c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 5aa799c

Please sign in to comment.