2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

File button placeholder text

This commit is contained in:
Faris Ansari 2018-07-15 19:20:24 +05:30
parent 26380ac3f6
commit ffdce49f89

View File

@ -10,7 +10,7 @@ export default {
}, },
methods: { methods: {
getWrapperElement(h) { getWrapperElement(h) {
let fileName = this._('Choose a file..'); let fileName = this.docfield.placeholder || this._('Choose a file..');
if (this.$refs.input && this.$refs.input.files.length) { if (this.$refs.input && this.$refs.input.files.length) {
fileName = this.$refs.input.files[0].name; fileName = this.$refs.input.files[0].name;