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 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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