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

  function openAddCapability(crateName, currentCapabilities) {
    const modalEl = document.getElementById('modal-add-capability');
    modalEl.style.display = "unset";
    const capabilityEl = document.getElementById("add-capability");
    capabilityEl.value = "";
    const closeEl = document.getElementById('modal-add-capability-close');
    closeEl.addEv