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
Carlos Ramos Carreño
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
Changes
1
Hide 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