Refactor admin panels to utilize CreateNameDialog for creating new entities
ci / build-backend (push) Successful in 2m23s
ci / build-frontend (push) Successful in 54s
ci / tests (push) Successful in 2m18s
ci / sonar (push) Successful in 5m51s

Updated the BumpersPanel, ChannelsPanel, CollectionsPanel, GroupsPanel, ClipGroupPanel, and ShowsPanel components to replace direct input fields with a CreateNameDialog for creating new items. This change enhances user experience by centralizing the creation process and improving UI consistency. Localization strings were also updated to reflect new dialog titles and labels in both English and Russian.
This commit is contained in:
Leonid Pershin
2026-07-29 23:26:32 +03:00
parent c4a94443f7
commit 281d081e6b
13 changed files with 408 additions and 183 deletions
@@ -277,7 +277,11 @@ export function InterstitialsPanel() {
<DialogHeader>
<DialogTitle>{preview?.name}</DialogTitle>
</DialogHeader>
{preview?.mediaAssetId && <HlsVideo src={mediaPreviewUrl(preview.mediaAssetId)} />}
{/* Кнопка в списке — это «плей», а не «открыть карточку»: жать ещё раз внутри окна
незачем, ролик на тридцать секунд. */}
{preview?.mediaAssetId && (
<HlsVideo src={mediaPreviewUrl(preview.mediaAssetId)} autoPlay />
)}
</DialogContent>
</Dialog>
</div>