Show path and uid on transfer button

Signed-off-by: Gary Kim <gary@garykim.dev>
pull/18270/head
Gary Kim 5 years ago committed by Roeland Jago Douma
parent bdceb0d38d
commit 09f1c637da
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      apps/files/js/dist/personal-settings.js
  2. 2
      apps/files/js/dist/personal-settings.js.map
  3. 8
      apps/files/src/components/TransferOwnershipDialogue.vue

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -61,7 +61,7 @@
<li> <li>
<input type="submit" <input type="submit"
class="primary" class="primary"
:value="t('files', 'Transfer')" :value="submitButtonText"
:disabled="!canSubmit"> :disabled="!canSubmit">
<span class="error">{{ submitError }}</span> <span class="error">{{ submitError }}</span>
</li> </li>
@ -115,6 +115,12 @@ export default {
icon: 'icon-user' 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() { created() {

Loading…
Cancel
Save