('modal-remove-capability-confirm');
  confirmEl.addEventListener('click', function() {
    closeEl.disabled = true;
    confirmEl.disabled = true;
    const newCapabilities = currentCapabilities.filter(t => t !== capability);
    apiSetCrateCapabilities(crateName, newCapabilities).then((_) => {
      window.location.reload();
    }).finally(() => {
      closeEl.disabled = false;
      confirmEl.disabled = false;
    });
  });
}
</script>
</html>
