Add different host types in Mirage. Add conditional in admin host-catalog hosts list to just show type=static

This commit is contained in:
Carlos Alcaide Corvo committed 2021-12-14 08:08:15 -08:00
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(),