chore: 🤖 refactor key value list component, text input support (#1957)
refactor: 💡 refactor list wrapper component and fix test
This commit is contained in:
1 parent
3f8e39d0e1
commit
722acdc1fc
25 files changed
+689
-641
No files matched your search
@@ -431,9 +431,17 @@ function routes() {
|
||||
return hostSets.where({ hostCatalogId });
|
||||
}
|
||||
);
|
||||
|
||||
this.post('/host-sets', function ({ hostCatalogs, hostSets }) {
|
||||
const attrs = this.normalizedRequestAttrs();
|
||||
const hostCatalog = hostCatalogs.find(attrs.hostCatalogId);
|
||||
//this needs to be attached while creating a plugin type host set to mimic API
|
||||
if (hostCatalog.plugin) {
|
||||
attrs.type = 'plugin';
|
||||
attrs.plugin = {
|
||||
name: hostCatalog.plugin.name,
|
||||
};
|
||||
}
|
||||
attrs.scopeId = hostCatalog.scope.id;
|
||||
return hostSets.create(attrs);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user