file widget: save icon when mode == save; center icon when hidePath == true

This commit is contained in:
jean-emmanuel 2021-03-17 19:07:05 +01:00
parent 4af4fe93e3
commit 6e8a787b36
3 changed files with 16 additions and 0 deletions

View file

@ -39,6 +39,8 @@ module.exports = class File extends Widget {
if (this.getProp('align') === 'left') this.widget.classList.add('left')
if (this.getProp('align') === 'right') this.widget.classList.add('right')
if (this.getProp('mode') === 'save') this.widget.classList.add('save')
if (this.getProp('hidePath')) this.widget.classList.add('hide-path')
this.text = DOM.get(this.widget, '.text')[0]
this.widget.addEventListener('fast-click', (e)=>{