mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
js: Really stop rendering if a hook discards content
This is a potential breaking change for behaviors which rely on being able to change content in-place even if the response's content is not applied. This is the case for grafana's iframe behavior, though that's more a hack than a necessity so it doesn't break. I've found no other implementations so I guess it's fine including it here.
This commit is contained in:
parent
c79b513066
commit
a48a6ebcb5
@ -1272,6 +1272,7 @@
|
||||
const changed = hook.renderHook(content, $container, action, autorefresh, autoSubmit);
|
||||
if (changed === null) {
|
||||
discard = true;
|
||||
break;
|
||||
} else {
|
||||
content = changed;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user