Move plugin field generation from generated to a factory
This commit is contained in:
1 parent
bb9d99eefb
commit
6ad42a5eaa
2 files changed
+5
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user