Show path and uid on transfer button

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim 2019-12-15 17:28:07 +08:00 committed by Roeland Jago Douma
parent bdceb0d38d
commit 09f1c637da
No known key found for this signature in database
GPG key ID: F941078878347C0C
3 changed files with 7 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -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() {