Add different host types in Mirage. Add conditional in admin host-catalog hosts list to just show type=static
This commit is contained in:
1 parent
c8b49beba6
commit
aaa205b4e0
3 files changed
+65
-64
No files matched your search
@@ -5,7 +5,7 @@ import { random, date, internet, datatype } from 'faker';
|
||||
* GeneratedHostModelFactory
|
||||
*/
|
||||
export default Factory.extend({
|
||||
type: 'static',
|
||||
type: () => random.arrayElement(['static', 'plugin']),
|
||||
name: () => random.words(),
|
||||
description: () => random.words(),
|
||||
created_time: () => date.recent(),
|
||||
|
||||
Reference in new issue
Block a user