mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
js/ui: add toggleDebug function
This commit is contained in:
parent
473a705e2e
commit
90bb20f4c3
@ -52,7 +52,16 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
toggleDebug: function() {
|
||||||
|
if (this.debug) {
|
||||||
|
return this.disableDebug();
|
||||||
|
} else {
|
||||||
|
return this.enableDebug();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
enableDebug: function () {
|
enableDebug: function () {
|
||||||
|
if (this.debug === true) { return this; }
|
||||||
this.debug = true;
|
this.debug = true;
|
||||||
this.debugTimer = this.icinga.timer.register(
|
this.debugTimer = this.icinga.timer.register(
|
||||||
this.refreshDebug,
|
this.refreshDebug,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user