Show path and uid on transfer button
Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
parent
bdceb0d38d
commit
09f1c637da
3 changed files with 7 additions and 1 deletions
BIN
apps/files/js/dist/personal-settings.js
vendored
BIN
apps/files/js/dist/personal-settings.js
vendored
Binary file not shown.
BIN
apps/files/js/dist/personal-settings.js.map
vendored
BIN
apps/files/js/dist/personal-settings.js.map
vendored
Binary file not shown.
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue