mirror of https://github.com/rancher/ui.git
Merge pull request #4680 from nwmac/istio-embedding-fix
Fix reload issue when embedding istio configuration
This commit is contained in:
commit
9ab534f3ef
|
|
@ -46,9 +46,15 @@ export default Component.extend(ModalBase, {
|
|||
}
|
||||
|
||||
PromiseAll(promises).then(() => {
|
||||
setTimeout(() => {
|
||||
window.location.href = window.location.href; // eslint-disable-line no-self-assign
|
||||
}, 1000);
|
||||
const isEmbedded = window.top !== window;
|
||||
|
||||
if (isEmbedded) {
|
||||
window.top.postMessage({ action: 'reload' });
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
window.location.href = window.location.href; // eslint-disable-line no-self-assign
|
||||
}, 1000);
|
||||
}
|
||||
}).catch((err) => {
|
||||
get(this, 'growl').fromError(get(err, 'body.message'));
|
||||
}).finally(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue