summaryrefslogtreecommitdiffstats
path: root/openecomp-ui
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-05-21 18:24:05 +0300
committerEinav Keidar <einavw@amdocs.com>2018-05-22 06:13:35 +0000
commit69a1b38fd0049815869d90812c464d8303d1e3e3 (patch)
tree7491b141ae95dbdacc3c7768438d882cdc35c18b /openecomp-ui
parent5887a4293968696b055af48dae561c0b731f0364 (diff)
viewer can archive fix
Issue-ID: SDC-1351 Change-Id: I04d5c194e057707d150fafc885edac477e3b29d3 Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui')
-rw-r--r--openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx18
1 files changed, 11 insertions, 7 deletions
diff --git a/openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx b/openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx
index 7f7af8130f..b61abea520 100644
--- a/openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx
@@ -40,19 +40,22 @@ const VersionPageTitle = ({
depricatedTitle,
isArchived,
onRestore,
- onArchive
+ onArchive,
+ isCollaborator
}) => {
return (
<div className="version-page-header">
<div className="versions-page-title">{`${i18n(
'Available Versions'
)} - ${itemName} ${depricatedTitle}`}</div>
- <FeatureDepricatedButton
- depricateAction={
- isArchived ? () => onRestore() : () => onArchive()
- }
- title={i18n(isArchived ? 'RESTORE' : 'ARCHIVE')}
- />
+ {isCollaborator && (
+ <FeatureDepricatedButton
+ depricateAction={
+ isArchived ? () => onRestore() : () => onArchive()
+ }
+ title={i18n(isArchived ? 'RESTORE' : 'ARCHIVE')}
+ />
+ )}
</div>
);
};
@@ -91,6 +94,7 @@ class VersionsPage extends React.Component {
onArchive={onArchive}
isArchived={isArchived}
onRestore={onRestore}
+ isCollaborator={isCollaborator}
/>
<PermissionsView
owner={owner}