mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-10 18:47:51 +08:00
🎉 Sync 2026-09-27 21:03:26
This commit is contained in:
1 parent
f4559bbed1
commit
065763f7fd
673 files changed
+261285
-34160
No files matched your search
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
let state = {
|
||||
last_action: '',
|
||||
refresh_count: 0,
|
||||
service_ok: true,
|
||||
service_rc: 0,
|
||||
refresh_accepted: true,
|
||||
refresh_reason: ''
|
||||
};
|
||||
|
||||
return {
|
||||
state: state,
|
||||
run_service_action: function(action) {
|
||||
state.last_action = action;
|
||||
return { ok: state.service_ok, rc: state.service_rc };
|
||||
},
|
||||
start_refresh_async: function() {
|
||||
state.refresh_count++;
|
||||
return { accepted: state.refresh_accepted, reason: state.refresh_reason };
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user