diff --git a/src/utils/DropDownEdit/dropdownedit.js b/src/utils/DropDownEdit/dropdownedit.js
index b8b819dfb..dfef9667c 100644
--- a/src/utils/DropDownEdit/dropdownedit.js
+++ b/src/utils/DropDownEdit/dropdownedit.js
@@ -361,66 +361,72 @@ const DropDownEdit = ({
)}
-
-
-
- Export
-
-
-
-
+ {permission?.Activity?.includes(
+ "activity:view-export-xapi-option",
+ ) ||
+ permission?.["Independent Activity"]?.includes(
+ "independent-activity:view-export-h5p-option",
+ ) ? (
+
+
+
+ Export
+
+
+
+
-
- {permission?.Activity?.includes(
- "activity:view-export-xapi-option",
- ) && (
- -
-
+ {permission?.Activity?.includes(
+ "activity:view-export-xapi-option",
+ ) && (
+
-
+ {
+ dispatch(shareEnableLink(data.id));
+ }}
+ href={`${window.__RUNTIME_CONFIG__.REACT_APP_API_URL}/${config.apiVersion}/go/independent_activity/getxapifile/${data.id}`}
+ >
+ xAPI Format
+
+
+ )}
+ {permission?.["Independent Activity"]?.includes(
+ "independent-activity:view-export-h5p-option",
+ ) && (
+ - {
- dispatch(shareEnableLink(data.id));
- }}
- href={`${window.__RUNTIME_CONFIG__.REACT_APP_API_URL}/${config.apiVersion}/go/independent_activity/getxapifile/${data.id}`}
- >
- xAPI Format
-
-
- )}
- {permission?.["Independent Activity"]?.includes(
- "independent-activity:view-export-h5p-option",
- ) && (
- - {
- Swal.fire({
- title: "Please Wait !",
- html: "Exporting Activity ...",
- allowOutsideClick: false,
- onBeforeOpen: () => {
- Swal.showLoading();
- },
- });
- const result = indActivityService.exportIndAvtivity(
- activeOrganization.id,
- data.id,
- );
- result.then((data) => {
- // console.log(data)
Swal.fire({
- icon: "success",
- html: data?.message,
+ title: "Please Wait !",
+ html: "Exporting Activity ...",
+ allowOutsideClick: false,
+ onBeforeOpen: () => {
+ Swal.showLoading();
+ },
});
- });
- }}
- >
- H5P Format
-
- )}
-
-
-
+ const result = indActivityService.exportIndAvtivity(
+ activeOrganization.id,
+ data.id,
+ );
+ result.then((data) => {
+ // console.log(data)
+ Swal.fire({
+ icon: "success",
+ html: data?.message,
+ });
+ });
+ }}
+ >
+ H5P Format
+
+ )}
+
+
+ ) : null}
{/* */}
{/* {}}>