File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
packages/core/modal/common/discard-changes Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -447,8 +447,7 @@ export default {
447
447
stay : 'Stay' ,
448
448
discardChanges : 'Discard changes' ,
449
449
unsavedChanges : 'You have unsaved changes' ,
450
- unsavedChangesWarning :
451
- 'Are you sure you want to navigate away from this page? - you have unsaved\n changes\n ' ,
450
+ unsavedChangesWarning : 'Are you sure you want to navigate away from this page? You have unsaved changes' ,
452
451
confirmListViewPublish : 'Publishing will make the selected items visible on the site.' ,
453
452
confirmListViewUnpublish :
454
453
'Unpublishing will remove the selected items and all their descendants from the\n site.\n ' ,
Original file line number Diff line number Diff line change @@ -6,14 +6,19 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
6
6
export class UmbDiscardChangesModalElement extends UmbModalBaseElement {
7
7
override render ( ) {
8
8
return html `
9
- < uui-dialog-layout class ="uui-text " headline ="Discard changes? ">
10
- < uui-button slot ="actions " id ="cancel " label ="Stay " @click =${ this . _rejectModal } > </ uui-button >
9
+ < uui-dialog-layout class ="uui-text " headline =${ this . localize . term ( 'prompt_unsavedChanges' ) } >
10
+ < umb-localize key ="prompt_unsavedChangesWarning "> </ umb-localize >
11
+ < uui-button
12
+ slot ="actions "
13
+ id ="cancel "
14
+ label =${ this . localize . term ( 'prompt_stay' ) }
15
+ @click =${ this . _rejectModal } > </ uui-button >
11
16
< uui-button
12
17
slot ="actions "
13
18
id ="confirm "
14
19
color ="positive "
15
20
look ="primary "
16
- label =" Discard Changes "
21
+ label =${ this . localize . term ( 'prompt_discardChanges' ) }
17
22
@click =${ this . _submitModal } > </ uui-button >
18
23
</ uui-dialog-layout >
19
24
` ;
You can’t perform that action at this time.
0 commit comments