mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-27 03:09:48 +02:00
update(SystemControl): use app base dialog instead of global dialog
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good
This commit is contained in:
@ -7,3 +7,6 @@ via the Antunnel service
|
||||
|
||||

|
||||
|
||||
|
||||
## changelogs
|
||||
- 0.1.12-a: use application based dialog instead of global dialog
|
||||
|
@ -7,3 +7,6 @@ via the Antunnel service
|
||||
|
||||

|
||||
|
||||
|
||||
## changelogs
|
||||
- 0.1.12-a: use application based dialog instead of global dialog
|
||||
|
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
"dependencies": [
|
||||
"Antunnel@0.2.1-b"
|
||||
],
|
||||
"version":"0.1.11-a",
|
||||
"version":"0.1.12-a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-tachometer",
|
||||
"mimes":["none"],
|
||||
|
Binary file not shown.
@ -3,7 +3,7 @@ class SysmondService extends OS.application.BaseService
|
||||
super "SysmondService", args
|
||||
@text = __("{0}%", 0.toString())
|
||||
@iconclass = "fa fa-android"
|
||||
@app = undefined
|
||||
@app = args[0].app
|
||||
#@nodes = [
|
||||
# {text: __("Status"), id: 1},
|
||||
# {text: __("Shutdown"), id: 3},
|
||||
@ -50,7 +50,7 @@ class SysmondService extends OS.application.BaseService
|
||||
|
||||
if not @setting().topic
|
||||
console.log "Open dialog"
|
||||
@_gui.openDialog("PromptDialog", {
|
||||
@app.openDialog("PromptDialog", {
|
||||
title: __("Enter topic name"),
|
||||
label: __("Please enter topic name")
|
||||
})
|
||||
|
@ -47,7 +47,11 @@ class SystemControl extends this.OS.application.BaseApplication
|
||||
@battery.option("height", $(el).height())
|
||||
$(el).children().show()
|
||||
|
||||
@_gui.pushService("SystemControl/SysmondService", [])
|
||||
@_gui.pushService("SystemControl/SysmondService", [{
|
||||
path: @meta().path,
|
||||
type: "app",
|
||||
app: @
|
||||
}])
|
||||
.then (p) =>
|
||||
@service = p
|
||||
p.app = @
|
||||
|
@ -13,7 +13,7 @@
|
||||
"dependencies": [
|
||||
"Antunnel@0.2.1-b"
|
||||
],
|
||||
"version":"0.1.11-a",
|
||||
"version":"0.1.12-a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-tachometer",
|
||||
"mimes":["none"],
|
||||
|
Reference in New Issue
Block a user