fix: галочка "Создать копию" теперь включена по умолчанию в обоих диалогах

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 19:27:06 +03:00
parent caf1732cd3
commit c951ceb44b

View File

@@ -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"> <input type="checkbox" id="variant-action-copy" class="rounded border-gray-300" checked>
Создать копию Создать копию
</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"> <input type="checkbox" id="config-action-copy" class="rounded border-gray-300" checked>
Создать копию Создать копию
</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 = false; document.getElementById('variant-action-copy').checked = true;
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 = false; document.getElementById('config-action-copy').checked = true;
populateProjectAutocomplete(); populateProjectAutocomplete();
const currentProject = projectsCatalog.find(p => p.uuid === (currentProjectUUID || projectUUID)); const currentProject = projectsCatalog.find(p => p.uuid === (currentProjectUUID || projectUUID));
if (currentProject) { if (currentProject) {