Merge branch 'main' into host-sets

This commit is contained in:
Dharini Jeeva authored and GitHub committed 2021-08-24 13:45:25 -07:00
commit 39b71aa526
8 files changed
+415 -194

No files matched your search

@@ -1,7 +1,15 @@
import factory from '../generated/factories/host-catalog';
import { trait } from 'ember-cli-mirage';
import permissions from '../helpers/permissions';
export default factory.extend({
authorized_actions: () =>
permissions.authorizedActionsFor('host-catalog') || [
'no-op',
'read',
'update',
'delete',
],
withChildren: trait({
afterCreate(hostCatalog, server) {
const { scope } = hostCatalog;