chore: 🤖 refactor key value list component, text input support (#1957)

refactor: 💡 refactor list wrapper component and fix test
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2023-10-30 12:30:05 -07:00
1 parent 3f8e39d0e1
commit 722acdc1fc
25 files changed
+689 -641

No files matched your search

+8
View File
@@ -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);
});
@@ -233,7 +233,7 @@ host-set:
help: Create a filter to select resources using values such as tag name or tag value. The Azure filter format is:tagName eq ‘<tag-name>’ and tagValue eq ‘<tag-value>'. For example:tagName eq 'application' and tagValue eq 'production'
preferred_endpoints:
label: Preferred Endpoints
help: Optional. Preferred address at which the host should be accessed when multiple options are present, in cidr:<valid IPv4/6 CIDR> or dns:<globbed name> format.
help: Preferred address at which the host should be accessed when multiple options are present, in cidr:<valid IPv4/6 CIDR> or dns:<globbed name> format.
messages:
welcome:
title: Welcome to Host Sets