oa-componentbook 1.0.1-stage.430 → 1.0.1-stage.431
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.
|
@@ -1821,7 +1821,19 @@ function GenricLayOut(_ref) {
|
|
|
1821
1821
|
type: _layoutReducer.actionTypes.CUSTOM_DRAWER_OPEN
|
|
1822
1822
|
});
|
|
1823
1823
|
} else if ((leftHeaderFirstButton === null || leftHeaderFirstButton === void 0 ? void 0 : leftHeaderFirstButton.action) === "EXPORT_DATA") {
|
|
1824
|
-
handleLeftHeaderFirstButton(state)
|
|
1824
|
+
handleLeftHeaderFirstButton(state).then(res => {
|
|
1825
|
+
const {
|
|
1826
|
+
error,
|
|
1827
|
+
data
|
|
1828
|
+
} = res;
|
|
1829
|
+
if (error) {
|
|
1830
|
+
showErrorNotification(error);
|
|
1831
|
+
} else {
|
|
1832
|
+
showSuccessNotification((data === null || data === void 0 ? void 0 : data.message) || "Export initiated successfully");
|
|
1833
|
+
}
|
|
1834
|
+
}).catch(err => {
|
|
1835
|
+
showErrorNotification(err.message || "An error occurred during export");
|
|
1836
|
+
});
|
|
1825
1837
|
}
|
|
1826
1838
|
};
|
|
1827
1839
|
|