mirror of https://github.com/rancher/ui.git
isSystem is a string because reasons (#817)
This commit is contained in:
parent
2acd1675f7
commit
bda751bae3
|
|
@ -183,10 +183,15 @@ export default Ember.Component.extend(NewOrEdit, {
|
||||||
}
|
}
|
||||||
|
|
||||||
let explicit = this.get('templateResource.isSystem');
|
let explicit = this.get('templateResource.isSystem');
|
||||||
if ( explicit === true || explicit === false ) {
|
if ( explicit === true || explicit === "true" ) {
|
||||||
return explicit;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( explicit === false || explicit === "false" ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Things in one of the system categories go in system.
|
||||||
let systemCategories = C.EXTERNAL_ID.SYSTEM_CATEGORIES.map((str) => { return str.trim().toLowerCase(); });
|
let systemCategories = C.EXTERNAL_ID.SYSTEM_CATEGORIES.map((str) => { return str.trim().toLowerCase(); });
|
||||||
let category = (this.get('templateResource.category')||'').trim().toLowerCase();
|
let category = (this.get('templateResource.category')||'').trim().toLowerCase();
|
||||||
return systemCategories.indexOf(category) >= 0;
|
return systemCategories.indexOf(category) >= 0;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui",
|
"name": "ui",
|
||||||
"version": "1.2.6",
|
"version": "1.2.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "doc",
|
"doc": "doc",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue