editor: put back fragment on cancel
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/888/head
parent
fc53e020cf
commit
6f6eb1c3ae
|
@ -325,6 +325,9 @@ export default defineComponent({
|
||||||
})
|
})
|
||||||
) {
|
) {
|
||||||
this.onClose('warning-ignored', false);
|
this.onClose('warning-ignored', false);
|
||||||
|
} else {
|
||||||
|
// User cancelled, put the fragment back
|
||||||
|
utils.fragment.push(utils.fragment.types.editor);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue