fix(mail(js)): refresh of parent window when saving draft/template

This commit is contained in:
Francis Lachapelle committed 2022-05-17 15:33:43 -04:00
1 parent 35f9f35ef0
commit 715cf71ba3
3 files changed
+10 -3

No files matched your search

@@ -109,6 +109,11 @@
controllerAs: 'viewer'
}
},
params: {
reload: {
value: false
}
},
onEnter: onEnterMessage,
onExit: onExitMessage,
resolve: {
@@ -318,7 +323,7 @@
});
if (message && message.$reload) {
return message.$reload({useCache: true});
return message.$reload({useCache: !$stateParams.reload, nocache: $stateParams.reload});
}
else {
// Message not found