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
Labels
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
19903d3e
Commit
19903d3e
authored
Jun 11, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_parameter_editor: stop crashing early, as it occurs too often and make the panel unusable
parent
6b53d073
Pipeline
#35226
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_slapos_status.js.js
..._skins/slapos_parameter_editor/gadget_slapos_status.js.js
+8
-4
No files found.
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_slapos_status.js.js
View file @
19903d3e
...
...
@@ -227,12 +227,16 @@
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
// crash as soon as possible to detect wrong configuration
// wrong configuration, which can occurs in many places
// for example, "new" portal type like "Remote Node" are
// not handled at all
if
(
!
(
options
.
hasOwnProperty
(
'
jio_key
'
)
&&
options
.
hasOwnProperty
(
'
result
'
)))
{
throw
new
Error
(
'
status gadget did not receive jio_key and result values
'
);
return
domsugar
(
this
.
element
);
}
if
(
options
.
result
.
hasOwnProperty
(
'
monitor_url
'
))
{
options
.
result
.
monitor_url
+=
'
&slapos_master_url=
'
+
window
.
location
.
host
;
}
// Save will force the gadget to be updated so
// result is empty.
...
...
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