diff options
author | svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com> | 2018-07-02 14:05:17 +0300 |
---|---|---|
committer | Einav Keidar <einavw@amdocs.com> | 2018-07-03 07:44:48 +0000 |
commit | 8ae8f7eba59880eb81b985e98d87961e631013c7 (patch) | |
tree | 036a293b92bb8e45e4fef455cdde0f3c0fd8e0c4 /openecomp-ui/src/sdc-app/onboarding/versionsPage | |
parent | 4cc66168639fc4448023b73c9e42363823dd4788 (diff) |
archive fix & archive/filter toggle removed
Issue-ID: SDC-1383
Change-Id: I38548e5e0b5cce224e0d1324a97f9edce6dc0cfb
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/onboarding/versionsPage')
-rw-r--r-- | openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx | 9 |
1 files changed, 2 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 504de99e12..983d144969 100644 --- a/openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx +++ b/openecomp-ui/src/sdc-app/onboarding/versionsPage/VersionsPage.jsx @@ -20,7 +20,6 @@ import Tree from 'nfvo-components/tree/Tree.jsx'; import SVGIcon from 'sdc-ui/lib/react/SVGIcon.js'; import Button from 'sdc-ui/lib/react/Button.js'; import i18n from 'nfvo-utils/i18n/i18n.js'; -import featureToggle from 'sdc-app/features/featureToggle.js'; const ArchiveRestoreButton = ({ depricateAction, title, isArchived }) => ( <div className="deprecate-btn-wrapper"> @@ -34,7 +33,7 @@ const ArchiveRestoreButton = ({ depricateAction, title, isArchived }) => ( ) : ( <SVGIcon name="archiveBox" - title={i18n('Archive item')} + title={i18n('Archive')} color="secondary" onClick={depricateAction} /> @@ -46,10 +45,6 @@ const ArchivedTitle = () => ( <div className="archived-title">{i18n('Archived')}</div> ); -const FeatureDepricatedButton = featureToggle('ARCHIVE_ITEM')( - ArchiveRestoreButton -); - const VersionPageTitle = ({ itemName, isArchived, @@ -64,7 +59,7 @@ const VersionPageTitle = ({ {isArchived ? <ArchivedTitle /> : null} </div> {isCollaborator && ( - <FeatureDepricatedButton + <ArchiveRestoreButton isArchived={isArchived} depricateAction={ isArchived ? () => onRestore() : () => onArchive() |