From 091edfdac90f66d91caff1b93131f99ba74f9aeb Mon Sep 17 00:00:00 2001 From: svishnev Date: Mon, 19 Mar 2018 12:15:19 +0200 Subject: ui support for archive items Issue-ID: SDC-1088 Change-Id: I836e4896a8ec6bb065f9d2571f514916ccf6759f Signed-off-by: svishnev --- .../test-utils/factories/common/CurrentScreenFactory.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'openecomp-ui/test-utils/factories/common') diff --git a/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js b/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js index 8301a277cf..ee94ba988d 100644 --- a/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js +++ b/openecomp-ui/test-utils/factories/common/CurrentScreenFactory.js @@ -29,6 +29,7 @@ export const ItemPermissionFactory = new Factory() .attrs({ 'isDirty': false, 'isOutOfSync': false, + 'isArchived': false, 'isUpToDate': true }); @@ -52,7 +53,8 @@ Factory.define('InitializedCurrentScreenFactory') .option('isCertified', false) .option('inMerge', false) .option('isCollaborator', true) - .option('isReadOnlyMode', ['isCertified', 'inMerge', 'isCollaborator'], (isCertified, inMerge, isCollaborator) => + .option('isArchived', false) + .option('isReadOnlyMode', ['isCertified', 'inMerge', 'isCollaborator', 'isArchived'], (isCertified, inMerge, isCollaborator, isArchived) => isCertified || inMerge || !isCollaborator ) .attr('itemPermission', ['isCertified', 'inMerge', 'isCollaborator'], (isCertified, inMerge, isCollaborator) => @@ -71,9 +73,9 @@ Factory.define('CurrentScreenFactory') .option('isUpToDate', true) .option('version', ['isCertified'], (isCertified) => VersionFactory.build({isCertified})) .attr('itemPermission', [ - 'isCertified', 'inMerge', 'isCollaborator', 'isDirty', 'isOutOfSync', 'isUpToDate' - ], (isCertified, inMerge, isCollaborator, isDirty, isOutOfSync, isUpToDate) => - ItemPermissionFactory.build({isCollaborator, isCertified, inMerge, isDirty, isOutOfSync, isUpToDate}) + 'isCertified', 'inMerge', 'isCollaborator', 'isDirty', 'isOutOfSync', 'isUpToDate', 'isArchived' + ], (isCertified, inMerge, isCollaborator, isDirty, isOutOfSync, isUpToDate, isArchived) => + ItemPermissionFactory.build({isCollaborator, isCertified, inMerge, isDirty, isOutOfSync, isUpToDate, isArchived}) ) .attr('props', ['isReadOnlyMode', 'version'], (isReadOnlyMode, version) => { return {isReadOnlyMode, version}; -- cgit 1.2.3-korg