@bigbinary/neeto-tags-frontend 0.0.38 → 0.0.39

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.js CHANGED
@@ -7259,14 +7259,16 @@ var Dashboard = function Dashboard(_ref) {
7259
7259
  };
7260
7260
 
7261
7261
  var _useDeleteTag = useDeleteTag(),
7262
- mutate = _useDeleteTag.mutate;
7262
+ mutate = _useDeleteTag.mutate,
7263
+ isDeletingTag = _useDeleteTag.isLoading;
7263
7264
 
7264
7265
  var handleConfirmDelete = function handleConfirmDelete() {
7265
7266
  var payload = {
7266
7267
  url: tagType.url,
7267
7268
  id: selectedTag === null || selectedTag === void 0 ? void 0 : selectedTag.id
7268
7269
  };
7269
- mutate(payload, {
7270
+ var isNotDeleting = !isDeletingTag && isDeleteAlertOpen;
7271
+ isNotDeleting && mutate(payload, {
7270
7272
  onSuccess: function onSuccess() {
7271
7273
  var _data$tags, _deleteTags$onSuccess;
7272
7274
 
@@ -7359,7 +7361,7 @@ var Dashboard = function Dashboard(_ref) {
7359
7361
  currentPageNumber: pageIndex,
7360
7362
  handlePageChange: setPageIndex,
7361
7363
  totalCount: data === null || data === void 0 ? void 0 : data.totalCount,
7362
- allowRowClick: onTagRowClick,
7364
+ allowRowClick: !!onTagRowClick,
7363
7365
  onRowClick: function onRowClick(event, record, rowIndex) {
7364
7366
  return onTagRowClick({
7365
7367
  event: event,
@@ -7386,6 +7388,7 @@ var Dashboard = function Dashboard(_ref) {
7386
7388
  updateTags: updateTags
7387
7389
  }), /*#__PURE__*/React.createElement(Alert, {
7388
7390
  isOpen: isDeleteAlertOpen,
7391
+ isSubmitting: isDeletingTag,
7389
7392
  title: t("deleteTag"),
7390
7393
  message: /*#__PURE__*/React.createElement(React.Fragment, null, t("deleteItem", {
7391
7394
  type: t("tag").toLocaleLowerCase()