datastake-daf 0.6.731 → 0.6.732
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.
package/dist/pages/index.js
CHANGED
|
@@ -16191,6 +16191,15 @@ const MessageTypes = {
|
|
|
16191
16191
|
WARNING: 'warning'
|
|
16192
16192
|
};
|
|
16193
16193
|
|
|
16194
|
+
/**
|
|
16195
|
+
* Displays a notification message using Ant Design's message component
|
|
16196
|
+
* @param {string} type - The type of message (success, error, warning)
|
|
16197
|
+
* @param {string} m - The message content to display
|
|
16198
|
+
*/
|
|
16199
|
+
function displayMessage(type, m) {
|
|
16200
|
+
antd.message[type](m);
|
|
16201
|
+
}
|
|
16202
|
+
|
|
16194
16203
|
const countriesPhoneNumberLength = {
|
|
16195
16204
|
AD: 6,
|
|
16196
16205
|
AE: 9,
|
|
@@ -30051,11 +30060,8 @@ const StakeholdersTable = ({
|
|
|
30051
30060
|
saveData: saveFormData,
|
|
30052
30061
|
loading: formLoading,
|
|
30053
30062
|
onSubmitted: (type, m, data) => {
|
|
30054
|
-
// displayMessage(
|
|
30055
|
-
// type,
|
|
30056
|
-
// t("affirmations::subject-created-successfully") || m,
|
|
30057
|
-
// );
|
|
30058
30063
|
if (data.datastakeId) {
|
|
30064
|
+
displayMessage(type, t("affirmations::subject-created-successfully") || m);
|
|
30059
30065
|
goTo(`/app/edit/stakeholders/${data.datastakeId}`);
|
|
30060
30066
|
}
|
|
30061
30067
|
},
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { getColumns } from './columns.js';
|
|
|
4
4
|
import { checkboxConfig, getFiltersConfig, filtersConfig, getFilterOptions } from './config.js';
|
|
5
5
|
import { useGetQueryParams } from '../../../../hooks/useGetQueryParams.js';
|
|
6
6
|
import StakeholdersCreate from './create.jsx';
|
|
7
|
+
import { displayMessage } from '../../../../../helpers/messages.js';
|
|
7
8
|
|
|
8
9
|
const StakeholdersTable = ({
|
|
9
10
|
t = () => {},
|
|
@@ -114,11 +115,11 @@ const StakeholdersTable = ({
|
|
|
114
115
|
saveData={saveFormData}
|
|
115
116
|
loading={formLoading}
|
|
116
117
|
onSubmitted={(type, m, data) => {
|
|
117
|
-
// displayMessage(
|
|
118
|
-
// type,
|
|
119
|
-
// t("affirmations::subject-created-successfully") || m,
|
|
120
|
-
// );
|
|
121
118
|
if (data.datastakeId) {
|
|
119
|
+
displayMessage(
|
|
120
|
+
type,
|
|
121
|
+
t("affirmations::subject-created-successfully") || m,
|
|
122
|
+
);
|
|
122
123
|
goTo(`/app/edit/stakeholders/${data.datastakeId}`);
|
|
123
124
|
}
|
|
124
125
|
}}
|