@bigbinary/neeto-team-members-frontend 3.2.0 → 3.2.1
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/index.cjs.js +25 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +25 -35
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -2413,20 +2413,16 @@ var ChangeProfile = function ChangeProfile(_ref) {
|
|
|
2413
2413
|
})]
|
|
2414
2414
|
})]
|
|
2415
2415
|
}), /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Footer, {
|
|
2416
|
-
className: "flex items-center space-x-2",
|
|
2417
2416
|
children: /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
|
|
2417
|
+
isSubmitting: isUpdatingProfile || isUploading,
|
|
2418
2418
|
cancelButtonProps: {
|
|
2419
2419
|
"data-test-id": "ntm-profile-cancel-button",
|
|
2420
2420
|
"data-cy": "ntm-profile-cancel-button",
|
|
2421
|
-
disabled: false,
|
|
2422
|
-
style: "text",
|
|
2423
|
-
className: "ml-2",
|
|
2424
2421
|
onClick: onClose
|
|
2425
2422
|
},
|
|
2426
2423
|
submitButtonProps: {
|
|
2427
2424
|
"data-cy": "ntm-profile-submit-button",
|
|
2428
|
-
"data-test-id": "ntm-profile-save-changes-button"
|
|
2429
|
-
loading: isUpdatingProfile || isUploading
|
|
2425
|
+
"data-test-id": "ntm-profile-save-changes-button"
|
|
2430
2426
|
}
|
|
2431
2427
|
})
|
|
2432
2428
|
})]
|
|
@@ -4461,9 +4457,9 @@ var ManageRoles = function ManageRoles(_ref) {
|
|
|
4461
4457
|
var isReadOnly = selectedRole.kind === "system";
|
|
4462
4458
|
var isDisabled = ADMIN_ROLES.includes(selectedRole.name) && isReadOnly;
|
|
4463
4459
|
return /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
|
|
4464
|
-
initialFocusRef: inputReference,
|
|
4465
4460
|
isOpen: isOpen,
|
|
4466
4461
|
onClose: onClose,
|
|
4462
|
+
initialFocusRef: inputReference,
|
|
4467
4463
|
children: [/*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Header, {
|
|
4468
4464
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
4469
4465
|
"data-cy": "ntm-add-role-title",
|
|
@@ -4510,20 +4506,17 @@ var ManageRoles = function ManageRoles(_ref) {
|
|
|
4510
4506
|
})]
|
|
4511
4507
|
})
|
|
4512
4508
|
}), /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Footer, {
|
|
4513
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
4509
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
|
|
4510
|
+
isSubmitting: isSubmitting,
|
|
4514
4511
|
className: "ntm-roles-pane__footer",
|
|
4515
|
-
|
|
4516
|
-
"data-cy": "ntm-add-role-submit-button",
|
|
4517
|
-
disabled: !dirty || isSubmitting || isDisabled,
|
|
4518
|
-
label: t("neetoTeamMembers.buttons.saveChanges"),
|
|
4519
|
-
loading: isSubmitting,
|
|
4520
|
-
type: "submit"
|
|
4521
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
4512
|
+
cancelButtonProps: {
|
|
4522
4513
|
"data-cy": "ntm-add-role-cancel-button",
|
|
4523
|
-
label: t("neetoTeamMembers.buttons.cancel"),
|
|
4524
|
-
style: "text",
|
|
4525
4514
|
onClick: onClose
|
|
4526
|
-
}
|
|
4515
|
+
},
|
|
4516
|
+
submitButtonProps: {
|
|
4517
|
+
"data-cy": "ntm-add-role-submit-button",
|
|
4518
|
+
disabled: isSubmitting || isDisabled || !dirty
|
|
4519
|
+
}
|
|
4527
4520
|
})
|
|
4528
4521
|
})]
|
|
4529
4522
|
});
|
|
@@ -9167,8 +9160,7 @@ var ManageMember = function ManageMember(_ref) {
|
|
|
9167
9160
|
},
|
|
9168
9161
|
children: function children(_ref5) {
|
|
9169
9162
|
var _manageMemberComponen2, _manageMemberComponen3;
|
|
9170
|
-
var values = _ref5.values
|
|
9171
|
-
dirty = _ref5.dirty;
|
|
9163
|
+
var values = _ref5.values;
|
|
9172
9164
|
var emails = values.emails,
|
|
9173
9165
|
role = values.role;
|
|
9174
9166
|
formikValues.current = values;
|
|
@@ -9187,23 +9179,21 @@ var ManageMember = function ManageMember(_ref) {
|
|
|
9187
9179
|
completedCount: progress === null || progress === void 0 ? void 0 : progress.completedCount
|
|
9188
9180
|
})
|
|
9189
9181
|
}), renderFormPage(currentPage, emails, role)]
|
|
9190
|
-
})), /*#__PURE__*/jsxRuntime.
|
|
9182
|
+
})), /*#__PURE__*/jsxRuntime.jsx(Component.Footer, _objectSpread$1(_objectSpread$1({}, manageMemberComponentConfig.footerProps), {}, {
|
|
9191
9183
|
className: classnames__default["default"](["ntm-members-form__footer", (_manageMemberComponen3 = manageMemberComponentConfig.footerProps) === null || _manageMemberComponen3 === void 0 ? void 0 : _manageMemberComponen3.className]),
|
|
9192
|
-
children:
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
onClick: function onClick() {
|
|
9204
|
-
return handleClose(false);
|
|
9184
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ActionBlock__default["default"], {
|
|
9185
|
+
isSubmitting: isSubmitting || isCreationStatusPollingEnabled,
|
|
9186
|
+
cancelButtonProps: {
|
|
9187
|
+
"data-cy": "ntm-manage-member-cancel-button",
|
|
9188
|
+
onClick: function onClick() {
|
|
9189
|
+
return handleClose(false);
|
|
9190
|
+
}
|
|
9191
|
+
},
|
|
9192
|
+
submitButtonProps: {
|
|
9193
|
+
"data-cy": isLastPage ? "ntm-manage-member-submit-button" : "ntm-manage-member-continue-button",
|
|
9194
|
+
label: isLastPage ? t("neetoTeamMembers.buttons.saveChanges") : t("neetoTeamMembers.buttons.continue")
|
|
9205
9195
|
}
|
|
9206
|
-
})
|
|
9196
|
+
})
|
|
9207
9197
|
}))]
|
|
9208
9198
|
});
|
|
9209
9199
|
}
|