fix: галочка "Создать копию" снята по умолчанию (программный checked не триггерил change-обработчик имени)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -229,7 +229,7 @@
|
|||||||
class="w-full px-3 py-2 border rounded focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
class="w-full px-3 py-2 border rounded focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
||||||
</div>
|
</div>
|
||||||
<label class="flex items-center gap-2 text-sm text-gray-700">
|
<label class="flex items-center gap-2 text-sm text-gray-700">
|
||||||
<input type="checkbox" id="variant-action-copy" class="rounded border-gray-300" checked>
|
<input type="checkbox" id="variant-action-copy" class="rounded border-gray-300">
|
||||||
Создать копию
|
Создать копию
|
||||||
</label>
|
</label>
|
||||||
<div>
|
<div>
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
class="w-full px-3 py-2 border rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
class="w-full px-3 py-2 border rounded focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
||||||
</div>
|
</div>
|
||||||
<label class="flex items-center gap-2 text-sm text-gray-700">
|
<label class="flex items-center gap-2 text-sm text-gray-700">
|
||||||
<input type="checkbox" id="config-action-copy" class="rounded border-gray-300" checked>
|
<input type="checkbox" id="config-action-copy" class="rounded border-gray-300">
|
||||||
Создать копию
|
Создать копию
|
||||||
</label>
|
</label>
|
||||||
<div>
|
<div>
|
||||||
@@ -634,7 +634,7 @@ function openVariantActionModal() {
|
|||||||
document.getElementById('variant-action-current-code').value = currentCode;
|
document.getElementById('variant-action-current-code').value = currentCode;
|
||||||
document.getElementById('variant-action-name').value = currentName;
|
document.getElementById('variant-action-name').value = currentName;
|
||||||
document.getElementById('variant-action-code').value = currentCode;
|
document.getElementById('variant-action-code').value = currentCode;
|
||||||
document.getElementById('variant-action-copy').checked = true;
|
document.getElementById('variant-action-copy').checked = false;
|
||||||
document.getElementById('variant-action-modal').classList.remove('hidden');
|
document.getElementById('variant-action-modal').classList.remove('hidden');
|
||||||
document.getElementById('variant-action-modal').classList.add('flex');
|
document.getElementById('variant-action-modal').classList.add('flex');
|
||||||
const nameInput = document.getElementById('variant-action-name');
|
const nameInput = document.getElementById('variant-action-name');
|
||||||
@@ -1105,7 +1105,7 @@ async function openConfigActionModal(uuid, currentName, currentProjectUUID) {
|
|||||||
document.getElementById('config-action-current-name').value = currentName;
|
document.getElementById('config-action-current-name').value = currentName;
|
||||||
document.getElementById('config-action-current-project').value = currentProjectUUID || projectUUID;
|
document.getElementById('config-action-current-project').value = currentProjectUUID || projectUUID;
|
||||||
document.getElementById('config-action-name').value = currentName;
|
document.getElementById('config-action-name').value = currentName;
|
||||||
document.getElementById('config-action-copy').checked = true;
|
document.getElementById('config-action-copy').checked = false;
|
||||||
populateProjectAutocomplete();
|
populateProjectAutocomplete();
|
||||||
const currentProject = projectsCatalog.find(p => p.uuid === (currentProjectUUID || projectUUID));
|
const currentProject = projectsCatalog.find(p => p.uuid === (currentProjectUUID || projectUUID));
|
||||||
if (currentProject) {
|
if (currentProject) {
|
||||||
|
|||||||
Reference in New Issue
Block a user