mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
bugfix: resetModal in openMode modal
This commit is contained in:
@@ -56,7 +56,6 @@ export default {
|
||||
previewText: null,
|
||||
previewBody: "",
|
||||
replyData: null,
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -115,7 +114,7 @@ export default {
|
||||
data.append('ids', JSON.stringify(this.id));
|
||||
|
||||
return this.$refs.formMessage
|
||||
.call(ApiMessages.sendMessageFromModalContext(this.typeId, data))
|
||||
.call(ApiMessages.sendMessage(this.typeId, data))
|
||||
.then(response => {
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSent'));
|
||||
this.hideModal('modalNewMessage');
|
||||
@@ -151,7 +150,6 @@ export default {
|
||||
this.previewText = previews[this.defaultRecipient];
|
||||
}).catch(this.$fhcAlert.handleSystemError)
|
||||
.finally(() => {
|
||||
this.resetForm();
|
||||
//closeModal
|
||||
//closewindwo
|
||||
});
|
||||
@@ -166,7 +164,7 @@ export default {
|
||||
this.editor.save();
|
||||
|
||||
} else {
|
||||
console.error("Editor instance is not available.");
|
||||
console.error(this.$p.t('messages', 'errorEditorNotAvailable'));
|
||||
}
|
||||
},
|
||||
resetForm(){
|
||||
|
||||
Reference in New Issue
Block a user