os-js / osjs-dialogs

OS.js Dialogs Module

Home Page:https://manual.os-js.org/v3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

save file dialog OK button enabled when no directory selected

Dorosty opened this issue · comments

why is this line like this?

buttons: {
ok: this.args.filetype === 'directory'
? true
: !!this.args.filename
}

shouldn't it just be?

buttons: {
  ok: !!this.args.filename
}

Currently whenever the save dialog box is opened with filetype: 'directory' the OK button is enabled. Which may be wrong.

Feel free to submit a PR to change the behavior :)