2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +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: {
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) {
fileName = this.$refs.input.files[0].name;