Move plugin field generation from generated to a factory

This commit is contained in:
Carlos Alcaide Corvo committed 2022-01-27 10:17:34 -08:00
1 parent bb9d99eefb
commit 6ad42a5eaa
2 files changed
+5 -5

No files matched your search

+5
View File
@@ -10,4 +10,9 @@ export default factory.extend({
'delete',
],
id: (i) => `host-id-${i}`,
plugin() {
if (this.type === 'plugin') {
return this.hostCatalog.plugin;
}
},
});
@@ -13,9 +13,4 @@ export default Factory.extend({
attributes: () => {
return { address: internet.ipv6() };
},
plugin: function () {
if (this.type === 'plugin') {
return this.hostCatalog.plugin;
}
},
});