diff --git a/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts b/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts index 5d638ef..e0880b1 100644 --- a/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts +++ b/jambotron-ui/src/app/modules/user-module/project-details.component/project-details.component.ts @@ -357,10 +357,10 @@ export class ProjectDetailsComponent implements OnInit, OnDestroy, AfterViewChec }; } - // Отправка монолитного конфига на бэкенд через твой рабочий ProjectService + // Отправка монолитного конфига на бэкенд this.projectService.updateProjectConfig(this.project.id, this.config).subscribe({ - next: (updatedConfig) => { - this.config = updatedConfig; + next: () => { + // Бэкенд возвращает void (200 OK). Нам НЕ нужно затирать config! this.editingDomains[container.id] = false; console.log(`[Caddy] Маршрут для сервиса ${serviceName} успешно сохранён.`); }, @@ -370,7 +370,6 @@ export class ProjectDetailsComponent implements OnInit, OnDestroy, AfterViewChec } }); } - cancelEditDomain(containerId: string) { this.editingDomains[containerId] = false; }