aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/common
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-04-22 14:14:31 +0300
committerEinav Keidar <einavw@amdocs.com>2018-04-22 12:19:13 +0000
commit57c5c4ab80cde4290cac97a6eba3dc7de280538a (patch)
tree450d14403035554ca79f0de55c40c81b71e7740e /openecomp-ui/src/sdc-app/common
parenteb4b9fb0f4d3b62f3b9e2da81ebe581e7d0fc6eb (diff)
attachment page navigation fix
Issue-ID: SDC-1239 Change-Id: Ib597238233e9a035944b7a56a56601cdfd624ca2 Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/src/sdc-app/common')
-rw-r--r--openecomp-ui/src/sdc-app/common/helpers/ItemsHelper.js14
-rw-r--r--openecomp-ui/src/sdc-app/common/helpers/ItemsHelperConstants.js10
2 files changed, 12 insertions, 12 deletions
diff --git a/openecomp-ui/src/sdc-app/common/helpers/ItemsHelper.js b/openecomp-ui/src/sdc-app/common/helpers/ItemsHelper.js
index ae5c2707b6..bbca87fec5 100644
--- a/openecomp-ui/src/sdc-app/common/helpers/ItemsHelper.js
+++ b/openecomp-ui/src/sdc-app/common/helpers/ItemsHelper.js
@@ -18,8 +18,6 @@ import Configuration from 'sdc-app/config/Configuration.js';
import { permissionTypes } from 'sdc-app/onboarding/permissions/PermissionsConstants.js';
import { actionsEnum as VersionControllerActionsEnum } from 'nfvo-components/panel/versionController/VersionControllerConstants.js';
import { actionTypes as onboardingActionTypes } from 'sdc-app/onboarding/OnboardingConstants.js';
-import { restToggle } from 'sdc-app/features/featureToggleUtils.js';
-import { featureToggleNames } from 'sdc-app/features/FeaturesConstants.js';
import objectPropsToUrlString from 'nfvo-utils/objectPropsToUrlString.js';
export const archiveActions = {
@@ -98,11 +96,7 @@ const ItemsHelper = {
},
fetchItem(itemId) {
- return restToggle({
- restFunction: () => RestAPIUtil.fetch(`${baseUrl()}/${itemId}`),
- featureName: featureToggleNames.ARCHIVE_ITEM,
- mockResult: {}
- });
+ return RestAPIUtil.fetch(`${baseUrl()}/${itemId}`);
},
archiveItem(itemId) {
@@ -118,11 +112,7 @@ const ItemsHelper = {
fetchItems(filterData) {
const str = objectPropsToUrlString(filterData);
- return restToggle({
- restFunction: () => RestAPIUtil.fetch(`${baseUrl()}?${str}`),
- featureName: featureToggleNames.FILTER,
- mockResult: { results: [] }
- });
+ return RestAPIUtil.fetch(`${baseUrl()}?${str}`);
}
};
diff --git a/openecomp-ui/src/sdc-app/common/helpers/ItemsHelperConstants.js b/openecomp-ui/src/sdc-app/common/helpers/ItemsHelperConstants.js
index ebbbfded3b..9837fed53c 100644
--- a/openecomp-ui/src/sdc-app/common/helpers/ItemsHelperConstants.js
+++ b/openecomp-ui/src/sdc-app/common/helpers/ItemsHelperConstants.js
@@ -27,3 +27,13 @@ export const itemType = {
VSP: 'vsp',
VLM: 'vlm'
};
+
+export const itemPermissions = {
+ CONTRIBUTOR: 'Contributor',
+ OWNER: 'Owner'
+};
+
+export const itemOnboardingProcedure = {
+ NETWORK: 'NetworkPackage',
+ MANUAL: 'Manual'
+};