diff --git a/app/views/editors/KeyframeView.js b/app/views/editors/KeyframeView.js index cc9fc9d..65e6ad4 100644 --- a/app/views/editors/KeyframeView.js +++ b/app/views/editors/KeyframeView.js @@ -14,7 +14,7 @@ class KeyframeView extends WindozDomContent { constructor() { super() - Object.assign(this, app.helpers.activeAttributes, app.helpers.formBuilder, app.helpers.kfConsole) + Object.assign(this, app.helpers.activeAttributes, app.helpers.formBuilder, app.helpers.kfConsole, app.helpers.basicDialogs) } DOMContentFocused(options) { @@ -105,7 +105,18 @@ class KeyframeView extends WindozDomContent { async onResetKF(evt){ if(!this.currentKeyframe.kfId) return - await this.loadKeyframe(this.currentKeyframe.kfId) + const kfName = this.currentKeyframe.kfName + const kfId = this.currentKeyframe.kfId + await this.confirmDialog({ + title: 'Reset keyframe ?', + message: `
You are about to discard all unsaved changes
and reload the saved version of "${kfName}".
+ Are you sure?