@bindu-dashing/dam-solution-v2 5.8.48 → 5.8.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,7 +148,13 @@ function AssetTemplatesTable({ assetTemplates, totalPages, totalCount, filters =
|
|
|
148
148
|
: undefined, sortBy: sortBy, sortOrder: order });
|
|
149
149
|
onFetchAssetTemplates(updatedFilters);
|
|
150
150
|
};
|
|
151
|
-
return (_jsxs("div", { className: "md-lib-mt-4", children: [_jsx(Table, { columns: columns, dataSource: assetTemplates, loading: { spinning: loading, indicator: _jsx(CustomLoader, {}) }, className: "assetType-table", pagination: totalPages > 1
|
|
151
|
+
return (_jsxs("div", { className: "md-lib-mt-4", children: [_jsx(Table, { columns: columns, dataSource: assetTemplates, loading: { spinning: loading, indicator: _jsx(CustomLoader, {}) }, className: "assetType-table", pagination: totalPages > 1
|
|
152
|
+
? {
|
|
153
|
+
showSizeChanger: false,
|
|
154
|
+
total: totalCount,
|
|
155
|
+
current: filters.page || DEFAULT_PAGE,
|
|
156
|
+
}
|
|
157
|
+
: false, onChange: handleTableChange, scroll: { x: "100%" } }), _jsx(DeleteConfirmationModal, { showDeleteModal: showConfirmPopup, toggleDeleteModal: toggleDeletConfirm, okText: updateAssetId ? DEACTIVATE_OK_TEXT : DELETE_OK_TEXT, onOk: updateAssetId
|
|
152
158
|
? () => onUpdateTemplate({ isActive: false }, get(selectedAsset, "_id"))
|
|
153
159
|
: onDeleteTemplate, loading: actionLoading, description: DELETE_CONFIRMATION_MESSAGE.replace(":action", updateAssetId ? "deactivate" : "delete").replace(":entity", `${get(selectedAsset, "name", "this asset template")}`), subHeading: updateAssetId
|
|
154
160
|
? ""
|
|
@@ -22,7 +22,6 @@ import { FileUploadStatus, NotificationStatus, } from "../utilities/constants/in
|
|
|
22
22
|
import { get, keyBy, map, merge, values } from "lodash";
|
|
23
23
|
import { DELETE_S3_FILE_URL, FILE_UPLOAD_URL, } from "../utilities/constants/apiUrls";
|
|
24
24
|
import CustomLoader from "../common/loader/CustomLoader";
|
|
25
|
-
import axios from "axios";
|
|
26
25
|
import UploadStatusModal from "./UploadStatusModal";
|
|
27
26
|
import { useDamConfig } from "../hocs/DamConfigContext";
|
|
28
27
|
import { createApiClient } from "../hocs/configureAxios";
|
|
@@ -118,11 +117,13 @@ const AddDrive = () => {
|
|
|
118
117
|
continue;
|
|
119
118
|
}
|
|
120
119
|
try {
|
|
121
|
-
yield
|
|
120
|
+
yield fetch(fileUrl, {
|
|
121
|
+
method: "PUT",
|
|
122
122
|
headers: {
|
|
123
123
|
"Content-Type": get(file, "mimetype"),
|
|
124
124
|
"Access-Control-Allow-Origin": "*",
|
|
125
125
|
},
|
|
126
|
+
body: file.file,
|
|
126
127
|
});
|
|
127
128
|
updateFileStatus(get(file, "name"), FileUploadStatus.SUCCESS);
|
|
128
129
|
}
|