diff options
author | Gary Kim <gary@garykim.dev> | 2019-12-15 17:28:07 +0800 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-17 10:38:14 +0100 |
commit | 09f1c637da5e650ad50f9ec147aeaed1c6c05c25 (patch) | |
tree | 22b4d66906996823a442f004ed501379c7dac602 /apps/files/src | |
parent | bdceb0d38d1ccbefc03728a6af76435d4d8a335b (diff) | |
download | nextcloud-server-09f1c637da5e650ad50f9ec147aeaed1c6c05c25.tar.gz nextcloud-server-09f1c637da5e650ad50f9ec147aeaed1c6c05c25.zip |
Show path and uid on transfer button
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/components/TransferOwnershipDialogue.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue index 8c48ba3f4a7..1dd1542ea23 100644 --- a/apps/files/src/components/TransferOwnershipDialogue.vue +++ b/apps/files/src/components/TransferOwnershipDialogue.vue @@ -61,7 +61,7 @@ <li> <input type="submit" class="primary" - :value="t('files', 'Transfer')" + :value="submitButtonText" :disabled="!canSubmit"> <span class="error">{{ submitError }}</span> </li> @@ -115,6 +115,12 @@ export default { icon: 'icon-user' } }) + }, + submitButtonText() { + if (!this.canSubmit) { + return t('files', 'Set options above') + } + return t('files', 'Transfer "{path}" to {userid}', { path: this.directory, userid: this.uid }) } }, created() { |