diff --git a/views/partials/popover-models.html b/views/partials/popover-models.html index f37213f..81b1fa1 100644 --- a/views/partials/popover-models.html +++ b/views/partials/popover-models.html @@ -53,8 +53,8 @@ -
- You can only use custom endpoint if you are a subscriber ++ Need subscription
@@ -107,7 +107,7 @@ }); document.getElementById('model-name-input').addEventListener('input', function () { - document.getElementById('confirm-create-model-button').disabled = this.value === ''; + document.getElementById('confirm-create-model-button').disabled = this.value === '' || !document.getElementById('endpoint-error').classList.contains('is-hidden'); }) document.addEventListener('click', function (event) { @@ -124,8 +124,10 @@ if (this.value === 'none') { document.getElementById('endpoint-error').classList.remove('is-hidden'); + document.getElementById('confirm-create-model-button').disabled = true; } else { document.getElementById('endpoint-error').classList.add('is-hidden'); + document.getElementById('confirm-create-model-button').disabled = false; } });