Refactor admin panels to utilize CreateNameDialog for creating new entities
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:
@@ -87,6 +87,7 @@ export const en = {
|
||||
admin: {
|
||||
groups: {
|
||||
title: 'Groups',
|
||||
createTitle: 'Create a group',
|
||||
hint: 'A group is what may go on air. Grid slots reference it; the strategy picks an element from it.',
|
||||
name: 'Name',
|
||||
description: 'Description',
|
||||
@@ -169,6 +170,7 @@ export const en = {
|
||||
'Takes the first part’s cover for collections that have no poster yet. A hand-picked one is left alone.',
|
||||
postersDone: 'Posters filled: {{count}}',
|
||||
title: 'Collections',
|
||||
createTitle: 'Create a collection',
|
||||
hint: 'A franchise is an ordered set of films played as a single unit.',
|
||||
name: 'Name',
|
||||
description: 'Description',
|
||||
@@ -213,7 +215,8 @@ export const en = {
|
||||
pickGroupFirst: 'Pick a group first',
|
||||
dropToGroup: 'Drop a clip or a block here',
|
||||
openGroup: 'Open group',
|
||||
newGroupName: 'New group',
|
||||
newGroupName: 'Group name',
|
||||
createGroupTitle: 'Create a clip group',
|
||||
},
|
||||
genres: {
|
||||
title: 'Genres',
|
||||
@@ -400,6 +403,7 @@ export const en = {
|
||||
},
|
||||
shows: {
|
||||
title: 'Shows',
|
||||
createTitle: 'Create a show',
|
||||
name: 'Name',
|
||||
originalName: 'Original name (eng)',
|
||||
kind: 'Kind',
|
||||
@@ -760,6 +764,7 @@ export const en = {
|
||||
},
|
||||
|
||||
title: 'Channels',
|
||||
createTitle: 'Create a channel',
|
||||
name: 'Name',
|
||||
slug: 'Slug',
|
||||
state: 'State',
|
||||
@@ -838,7 +843,8 @@ export const en = {
|
||||
title: 'Bumpers',
|
||||
hint: 'Bumper blocks are shared across channels: look and sound belong to the block, text to its variants. A bumper reaches air as a junction break.',
|
||||
empty: 'No bumper blocks yet.',
|
||||
newName: 'New block',
|
||||
newName: 'Block name',
|
||||
createTitle: 'Create a bumper block',
|
||||
newNamePlaceholder: 'Block name',
|
||||
newVariantName: 'New text',
|
||||
sampleChannel: 'Preview as channel',
|
||||
|
||||
Reference in New Issue
Block a user