mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Add ready variable
This commit is contained in:
parent
b70b7a0938
commit
d40501d2f4
@ -26,7 +26,7 @@ define(function(require, module, exports) {
|
||||
var meta = {};
|
||||
var hasValue = options && (typeof options.value === "string");
|
||||
|
||||
var tab, lastState, title, tooltip, editor, recentValue;
|
||||
var tab, lastState, title, tooltip, editor, recentValue, ready;
|
||||
|
||||
plugin.on("newListener", function(type, listener) {
|
||||
if (type == "state.set" && lastState) {
|
||||
@ -337,9 +337,12 @@ define(function(require, module, exports) {
|
||||
* @property {Boolean} ready
|
||||
*/
|
||||
get ready(){ return ready; },
|
||||
set ready(v) {
|
||||
ready = v;
|
||||
emit.sticky("ready");
|
||||
set ready(v) {
|
||||
if (typeof ready === "undefined") {
|
||||
ready = v;
|
||||
emit.sticky("ready");
|
||||
}
|
||||
|
||||
},
|
||||
/**
|
||||
* The tooltip displayed when hovering over the tab button
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user