Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
a506499c
Commit
a506499c
authored
Apr 02, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Minor fixes for Instance Status Gadget
parent
a995c7f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_instance_status_js.js
...m/web_page_module/rjs_gadget_slapos_instance_status_js.js
+8
-8
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_instance_status_js.js
View file @
a506499c
...
@@ -21,16 +21,16 @@
...
@@ -21,16 +21,16 @@
if
(
options
.
news
.
text
.
startsWith
(
"
#access
"
))
{
if
(
options
.
news
.
text
.
startsWith
(
"
#access
"
))
{
return
'
ui-btn-ok
'
;
return
'
ui-btn-ok
'
;
}
else
{
}
else
{
if
(
options
.
no_data
)
{
if
(
options
.
n
ews
.
n
o_data
)
{
return
'
ui-btn-no-data
'
;
return
'
ui-btn-no-data
'
;
}
}
else
if
(
options
.
is_slave
)
{
else
if
(
options
.
news
.
is_slave
)
{
return
'
ui-btn-is-slave
'
;
return
'
ui-btn-is-slave
'
;
}
}
else
if
(
options
.
is_stopped
)
{
else
if
(
options
.
news
.
is_stopped
)
{
return
'
ui-btn-is-stopped
'
;
return
'
ui-btn-is-stopped
'
;
}
}
else
if
(
options
.
is_destroyed
)
{
else
if
(
options
.
news
.
is_destroyed
)
{
return
'
ui-btn-is-destroyed
'
;
return
'
ui-btn-is-destroyed
'
;
}
}
return
'
ui-btn-error
'
;
return
'
ui-btn-error
'
;
...
@@ -46,19 +46,19 @@
...
@@ -46,19 +46,19 @@
monitor_url
=
'
https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type%3A%22Software%20Instance%22%20AND%20reference%3A%22
'
+
result
.
reference
+
'
%22
'
;
monitor_url
=
'
https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type%3A%22Software%20Instance%22%20AND%20reference%3A%22
'
+
result
.
reference
+
'
%22
'
;
status_class
=
checkInstanceStatus
(
result
);
status_class
=
checkInstanceStatus
(
result
);
if
(
status_class
===
'
ui-btn-no-data
'
)
{
if
(
status_class
===
'
ui-btn-is-slave
'
)
{
status_style
=
"
color: transparent !important;
"
;
}
else
if
(
status_class
===
'
ui-btn-is-slave
'
)
{
status_class
=
'
ui-btn-no-data
'
;
status_class
=
'
ui-btn-no-data
'
;
status_style
=
"
color: white !important;
"
;
status_title
=
'
Slave
'
;
status_title
=
'
Slave
'
;
}
}
else
if
(
status_class
===
'
ui-btn-is-stopped
'
)
{
else
if
(
status_class
===
'
ui-btn-is-stopped
'
)
{
status_class
=
'
ui-btn-no-data
'
;
status_class
=
'
ui-btn-no-data
'
;
status_style
=
"
color: white !important;
"
;
status_title
=
'
Stopped
'
;
status_title
=
'
Stopped
'
;
}
}
else
if
(
status_class
===
'
ui-btn-is-destroyed
'
)
{
else
if
(
status_class
===
'
ui-btn-is-destroyed
'
)
{
status_class
=
'
ui-btn-no-data
'
;
status_class
=
'
ui-btn-no-data
'
;
status_style
=
"
color: white !important;
"
;
status_title
=
'
Destroyed
'
;
status_title
=
'
Destroyed
'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment