File tree Expand file tree Collapse file tree 8 files changed +17
-16
lines changed Expand file tree Collapse file tree 8 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 1451
1451
"autoLoginError" : " Auto Login Error" ,
1452
1452
"autoLoginErrorNoRedirectUrl" : " No redirect URL received from the identity provider." ,
1453
1453
"autoLoginErrorGeneratingUrl" : " Failed to generate authentication URL." ,
1454
- "unsavedChangesWarning" : " You have unsaved changes. Are you sure you want to leave?"
1454
+ "unsavedChangesWarning" : " You have unsaved changes. Are you sure you want to leave?" ,
1455
+ "discardAllChanges" : " Discard All Changes"
1455
1456
}
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ export default function GeneralPage() {
198
198
{ hasUnsavedChanges && (
199
199
< UnsavedChangesIndicator
200
200
hasUnsavedChanges = { hasUnsavedChanges }
201
- variant = "alert "
201
+ variant = "badge "
202
202
/>
203
203
) }
204
204
Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ export default function ResourceAuthenticationPage() {
163
163
164
164
const { setIsNavigating : setUsersRolesNavigating } = useUnsavedChanges ( {
165
165
hasUnsavedChanges : hasLocalUsersRolesChanges ,
166
- message : "You have unsaved user/role changes that will be lost if you leave this page."
166
+ message : t ( "unsavedChangesWarning" )
167
167
} ) ;
168
168
169
169
const { setIsNavigating : setWhitelistNavigating } = useUnsavedChanges ( {
170
170
hasUnsavedChanges : hasLocalWhitelistChanges ,
171
- message : "You have unsaved whitelist changes that will be lost if you leave this page."
171
+ message : t ( "unsavedChangesWarning" )
172
172
} ) ;
173
173
174
174
const handleDiscardUsersRolesChanges = ( ) => {
@@ -744,7 +744,7 @@ export default function ResourceAuthenticationPage() {
744
744
variant = "outline"
745
745
onClick = { handleDiscardUsersRolesChanges }
746
746
>
747
- Discard All Changes
747
+ { t ( "discardAllChanges" ) }
748
748
</ Button >
749
749
) }
750
750
</ div >
@@ -965,7 +965,7 @@ export default function ResourceAuthenticationPage() {
965
965
variant = "outline"
966
966
onClick = { handleDiscardWhitelistChanges }
967
967
>
968
- Discard All Changes
968
+ { t ( "discardAllChanges" ) }
969
969
</ Button >
970
970
) }
971
971
</ div >
Original file line number Diff line number Diff line change @@ -148,9 +148,9 @@ export default function GeneralForm() {
148
148
subdomain : resource . subdomain ? resource . subdomain : undefined ,
149
149
domainId : resource . domainId || undefined ,
150
150
proxyPort : resource . proxyPort || undefined ,
151
- } )
151
+ } ) ,
152
152
clearPersistence ( ) ;
153
- }
153
+ } ;
154
154
155
155
useEffect ( ( ) => {
156
156
const fetchSites = async ( ) => {
@@ -455,7 +455,7 @@ export default function GeneralForm() {
455
455
variant = "outline"
456
456
onClick = { handleDiscardAllChanges }
457
457
>
458
- Discard All Changes
458
+ { t ( "discardAllChanges" ) }
459
459
</ Button >
460
460
) }
461
461
</ div >
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ export default function ReverseProxyTargets(props: {
265
265
// Add navigation protection for local target changes
266
266
const { setIsNavigating : setTargetNavigating } = useUnsavedChanges ( {
267
267
hasUnsavedChanges : hasLocalTargetChanges ,
268
- message : "You have unsaved target changes that will be lost if you leave this page."
268
+ message : t ( "unsavedChangesWarning" )
269
269
} ) ;
270
270
271
271
const tlsFormTracking = useFormWithUnsavedChanges ( {
@@ -1386,7 +1386,7 @@ export default function ReverseProxyTargets(props: {
1386
1386
variant = "outline"
1387
1387
onClick = { handleDiscardAllChanges }
1388
1388
>
1389
- Discard All Changes
1389
+ { t ( "discardAllChanges" ) }
1390
1390
</ Button >
1391
1391
) }
1392
1392
</ div >
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export default function ResourceRules(props: {
134
134
// Add navigation protection for local target changes
135
135
const { setIsNavigating : setTargetNavigating } = useUnsavedChanges ( {
136
136
hasUnsavedChanges : hasLocalTargetChanges ,
137
- message : "You have unsaved Rules changes that will be lost if you leave this page."
137
+ message : t ( "unsavedChangesWarning" )
138
138
} ) ;
139
139
140
140
const handleDiscardAllChanges = ( ) => {
@@ -813,7 +813,7 @@ export default function ResourceRules(props: {
813
813
variant = "outline"
814
814
onClick = { handleDiscardAllChanges }
815
815
>
816
- Discard All Changes
816
+ { t ( "discardAllChanges" ) }
817
817
</ Button >
818
818
) }
819
819
</ div >
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ export default function Page() {
232
232
// Add navigation protection for local target changes
233
233
const { setIsNavigating : setTargetNavigating } = useUnsavedChanges ( {
234
234
hasUnsavedChanges : hasLocalTargetChanges ,
235
- message : "You have unsaved target changes that will be lost if you leave this page."
235
+ message : t ( "unsavedChangesWarning" )
236
236
} ) ;
237
237
238
238
// Form tracking for unsaved changes
@@ -1498,7 +1498,7 @@ export default function Page() {
1498
1498
variant = "outline"
1499
1499
onClick = { handleDiscardAllChanges }
1500
1500
>
1501
- Discard All Changes
1501
+ { t ( "discardAllChanges" ) }
1502
1502
</ Button >
1503
1503
) }
1504
1504
</ div >
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ WantedBy=default.target`
631
631
{ hasUnsavedChanges && (
632
632
< UnsavedChangesIndicator
633
633
hasUnsavedChanges = { hasUnsavedChanges }
634
- variant = "alert "
634
+ variant = "badge "
635
635
/>
636
636
) }
637
637
< SettingsSectionForm >
You can’t perform that action at this time.
0 commit comments