fix(builder): un-hide and relabel static-page content editor, warn on publish/remove-language
- KNOWN-ISSUES item 11: the WYSIWYG page content editor was buried inside a collapsed Advanced <details>, labeled 'Raw HTML (advanced)'. Moved it to the top of the Content tab, unwrapped, relabeled 'Page Content' / 'Содержимое страницы' / 'Эջի բովանդակություն' with a plain-language description. Advanced tab keeps genuinely technical fields (id, slug, route, custom template). - Publish (save-bar) and Remove language (languages-section) had no confirmation despite being destructive/high-impact — added window.confirm guards using the existing builder.confirm* i18n pattern (matches resetDraft/resetSection/dirty-guard precedent), all 3 locales. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,9 @@ export class ProjectEditorSaveBarComponent {
|
||||
}
|
||||
|
||||
publish(): void {
|
||||
this.facade.publish();
|
||||
if (confirm(this.translate.t('builder.confirmPublish'))) {
|
||||
this.facade.publish();
|
||||
}
|
||||
}
|
||||
|
||||
resetDraft(): void {
|
||||
|
||||
@@ -59,7 +59,9 @@ export class ProjectEditorLanguagesSectionComponent {
|
||||
}
|
||||
|
||||
removeLocale(code: string): void {
|
||||
this.facade.removeLocale(code);
|
||||
if (confirm(this.translate.t('builder.confirmRemoveLanguage'))) {
|
||||
this.facade.removeLocale(code);
|
||||
}
|
||||
}
|
||||
|
||||
setDefault(code: string): void {
|
||||
|
||||
Reference in New Issue
Block a user