projects
/
osm
/
LW-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added create nsi button in netslice template list
[osm/LW-UI.git]
/
static
/
src
/
instancehandler
/
instance_create.js
diff --git
a/static/src/instancehandler/instance_create.js
b/static/src/instancehandler/instance_create.js
index
3cce0c4
..
fd6ecfa
100644
(file)
--- a/
static/src/instancehandler/instance_create.js
+++ b/
static/src/instancehandler/instance_create.js
@@
-148,14
+148,13
@@
function openModalCreateNSI(args) {
}
}
});
}
}
});
-
- if (args.descriptor_id) {
+ if (args.template_id) {
// Set the value, creating a new option if necessary
// Set the value, creating a new option if necessary
- if ($('#nstId').find("option[value='" + args.
descriptor
_id + "']").length) {
- $('#nstId').val(args.
descriptor
_id).trigger('change');
+ if ($('#nstId').find("option[value='" + args.
template
_id + "']").length) {
+ $('#nstId').val(args.
template
_id).trigger('change');
} else {
// Create a DOM Option and pre-select by default
} else {
// Create a DOM Option and pre-select by default
- var newOption = new Option(args.
descriptor_name, args.descriptor
_id, true, true);
+ var newOption = new Option(args.
template_name, args.template
_id, true, true);
// Append it to the select
$('#nstId').append(newOption).trigger('change');
}
// Append it to the select
$('#nstId').append(newOption).trigger('change');
}