n((_) => {
        window.location.reload();
      }).finally(() => {
        closeEl.disabled = false;
        confirmEl.disabled = false;
      });
    });
  }

  function openRemoveOwner(crateName, user) {
    const modalEl = document.getElementById('modal-remove-owner');
    modalEl.style.display = "unset";
    const userEmailEl = document.getElementById("remove-owner-email");
    userEmailEl.value = user.email;
    const closeEl = document.getElementById('modal-remove-owner-close');
    closeEl.addEven