Removing the selected image and clearing the dropdzone on dialog close.

Towards #741

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
Abijeet
2018-03-18 23:38:37 +05:30
parent 83d830fd7d
commit 3a5c20c17e
3 changed files with 15 additions and 6 deletions

View File

@ -43,6 +43,8 @@ const methods = {
hide() {
this.showing = false;
this.selectedImage = false;
this.$refs.dropzone.onClose();
this.$el.children[0].components.overlay.hide();
},
@ -175,4 +177,4 @@ module.exports = {
data,
computed,
components: {dropzone},
};
};