Skip to content

Commit

Permalink
Update dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Feb 23, 2024
1 parent 71a7a0f commit b5bd854
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,20 +509,12 @@ export default {
}
if (this.editable && this.dirty) {
this.$f7.dialog.create({
title: 'Changes not saved yet',
text: 'Do you want to save the changes before running the script?',
buttons: [
{
text: 'Skip',
onClick: () => run(false)
},
{
text: 'Save',
onClick: () => run(true)
}
]
}).open()
this.$f7.dialog.confirm(
'Do you want to save the changes before running the script?',
'Changes have not been saved',
() => run(this),
() => {}
)
} else {
run(false)
}
Expand Down

0 comments on commit b5bd854

Please sign in to comment.