add api for busy modal
This commit is contained in:
parent
b554a8703b
commit
53c8aa6e4c
1 changed files with 6 additions and 0 deletions
|
|
@ -238,6 +238,12 @@ export const api = {
|
||||||
settings,
|
settings,
|
||||||
show: {
|
show: {
|
||||||
alert() { return alerts.show(...arguments) },
|
alert() { return alerts.show(...arguments) },
|
||||||
|
busy(msg) {
|
||||||
|
if (msg === false || msg === null || msg === 0 || msg === '') {
|
||||||
|
return visuals.set_progress(0);
|
||||||
|
}
|
||||||
|
return visuals.set_progress(-1, typeof msg === 'string' ? msg : undefined);
|
||||||
|
},
|
||||||
controls() { console.trace('deprecated') },
|
controls() { console.trace('deprecated') },
|
||||||
devices: showDevices,
|
devices: showDevices,
|
||||||
import() { api.ui.import.style.display = '' },
|
import() { api.ui.import.style.display = '' },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue