Show path and uid on transfer button
Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
parent
bdceb0d38d
commit
09f1c637da
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…
Reference in New Issue