Skip to content

Commit 17bbb00

Browse files
fix(uve): Update toolbar dropdown messages (#31291)
Co-authored-by: Kevin Davila <kfariid@gmail.com>
1 parent f0272db commit 17bbb00

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/components/dot-editor-mode-selector/dot-editor-mode-selector.component.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ describe('DotEditorModeSelectorComponent', () => {
220220
test.each([
221221
{
222222
mode: UVE_MODE.EDIT,
223-
label: 'uve.editor.mode.edit',
224-
description: 'uve.editor.mode.edit.description'
223+
label: 'uve.editor.mode.draft',
224+
description: 'uve.editor.mode.draft.description'
225225
},
226226
{
227227
mode: UVE_MODE.PREVIEW,
@@ -230,8 +230,8 @@ describe('DotEditorModeSelectorComponent', () => {
230230
},
231231
{
232232
mode: UVE_MODE.LIVE,
233-
label: 'uve.editor.mode.live',
234-
description: 'uve.editor.mode.live.description'
233+
label: 'uve.editor.mode.published',
234+
description: 'uve.editor.mode.published.description'
235235
}
236236
])(
237237
'should show correct label and description for $mode menu item',
@@ -248,9 +248,9 @@ describe('DotEditorModeSelectorComponent', () => {
248248
);
249249

250250
test.each([
251-
{ mode: UVE_MODE.EDIT, label: 'uve.editor.mode.edit' },
251+
{ mode: UVE_MODE.EDIT, label: 'uve.editor.mode.draft' },
252252
{ mode: UVE_MODE.PREVIEW, label: 'uve.editor.mode.preview' },
253-
{ mode: UVE_MODE.LIVE, label: 'uve.editor.mode.live' }
253+
{ mode: UVE_MODE.LIVE, label: 'uve.editor.mode.published' }
254254
])('should update button label when mode changes - $mode', ({ mode, label }) => {
255255
// Start with Edit mode
256256
mockStore.pageParams.set({ ...pageParams, editorMode: mode });

core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/components/dot-editor-mode-selector/dot-editor-mode-selector.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class DotEditorModeSelectorComponent {
3535

3636
if (canEditPage) {
3737
menu.push({
38-
label: 'uve.editor.mode.edit',
39-
description: 'uve.editor.mode.edit.description',
38+
label: 'uve.editor.mode.draft',
39+
description: 'uve.editor.mode.draft.description',
4040
id: UVE_MODE.EDIT
4141
});
4242
}
@@ -49,8 +49,8 @@ export class DotEditorModeSelectorComponent {
4949

5050
if (hasLiveVersion) {
5151
menu.push({
52-
label: 'uve.editor.mode.live',
53-
description: 'uve.editor.mode.live.description',
52+
label: 'uve.editor.mode.published',
53+
description: 'uve.editor.mode.published.description',
5454
id: UVE_MODE.LIVE
5555
});
5656
}

dotCMS/src/main/webapp/WEB-INF/messages/Language.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5940,12 +5940,12 @@ uve.preview.mode.social.media.subheader=Social Media Tiles
59405940
uve.preview.mode.search.engine.subheader=Search Engine
59415941
uve.disable.delete.button.on.personalization=Personalization requires a minimum of <b>one</b> content item.
59425942
uve.personalize.empty.page.error=Personalization requires page content. Add some first.
5943-
uve.editor.mode.edit=Edit
5943+
uve.editor.mode.draft=Draft
59445944
uve.editor.mode.preview=Preview
5945-
uve.editor.mode.live=Live
5946-
uve.editor.mode.edit.description=Edit the page
5947-
uve.editor.mode.preview.description=Preview the current page
5948-
uve.editor.mode.live.description=Preview the current and future versions of the page
5945+
uve.editor.mode.published=Live
5946+
uve.editor.mode.draft.description=Edit your page
5947+
uve.editor.mode.preview.description=Check your latest edits
5948+
uve.editor.mode.published.description=View live or future page
59495949
59505950
59515951
coming.soon=Coming Soon

0 commit comments

Comments
 (0)