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 14511451 "autoLoginError" : " Auto Login Error" ,
14521452 "autoLoginErrorNoRedirectUrl" : " No redirect URL received from the identity provider." ,
14531453 "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"
14551456}
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ export default function GeneralPage() {
198198 { hasUnsavedChanges && (
199199 < UnsavedChangesIndicator
200200 hasUnsavedChanges = { hasUnsavedChanges }
201- variant = "alert "
201+ variant = "badge "
202202 />
203203 ) }
204204
Original file line number Diff line number Diff line change @@ -163,12 +163,12 @@ export default function ResourceAuthenticationPage() {
163163
164164 const { setIsNavigating : setUsersRolesNavigating } = useUnsavedChanges ( {
165165 hasUnsavedChanges : hasLocalUsersRolesChanges ,
166- message : "You have unsaved user/role changes that will be lost if you leave this page."
166+ message : t ( "unsavedChangesWarning" )
167167 } ) ;
168168
169169 const { setIsNavigating : setWhitelistNavigating } = useUnsavedChanges ( {
170170 hasUnsavedChanges : hasLocalWhitelistChanges ,
171- message : "You have unsaved whitelist changes that will be lost if you leave this page."
171+ message : t ( "unsavedChangesWarning" )
172172 } ) ;
173173
174174 const handleDiscardUsersRolesChanges = ( ) => {
@@ -744,7 +744,7 @@ export default function ResourceAuthenticationPage() {
744744 variant = "outline"
745745 onClick = { handleDiscardUsersRolesChanges }
746746 >
747- Discard All Changes
747+ { t ( "discardAllChanges" ) }
748748 </ Button >
749749 ) }
750750 </ div >
@@ -965,7 +965,7 @@ export default function ResourceAuthenticationPage() {
965965 variant = "outline"
966966 onClick = { handleDiscardWhitelistChanges }
967967 >
968- Discard All Changes
968+ { t ( "discardAllChanges" ) }
969969 </ Button >
970970 ) }
971971 </ div >
Original file line number Diff line number Diff line change @@ -148,9 +148,9 @@ export default function GeneralForm() {
148148 subdomain : resource . subdomain ? resource . subdomain : undefined ,
149149 domainId : resource . domainId || undefined ,
150150 proxyPort : resource . proxyPort || undefined ,
151- } )
151+ } ) ,
152152 clearPersistence ( ) ;
153- }
153+ } ;
154154
155155 useEffect ( ( ) => {
156156 const fetchSites = async ( ) => {
@@ -455,7 +455,7 @@ export default function GeneralForm() {
455455 variant = "outline"
456456 onClick = { handleDiscardAllChanges }
457457 >
458- Discard All Changes
458+ { t ( "discardAllChanges" ) }
459459 </ Button >
460460 ) }
461461 </ div >
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ export default function ReverseProxyTargets(props: {
265265 // Add navigation protection for local target changes
266266 const { setIsNavigating : setTargetNavigating } = useUnsavedChanges ( {
267267 hasUnsavedChanges : hasLocalTargetChanges ,
268- message : "You have unsaved target changes that will be lost if you leave this page."
268+ message : t ( "unsavedChangesWarning" )
269269 } ) ;
270270
271271 const tlsFormTracking = useFormWithUnsavedChanges ( {
@@ -1386,7 +1386,7 @@ export default function ReverseProxyTargets(props: {
13861386 variant = "outline"
13871387 onClick = { handleDiscardAllChanges }
13881388 >
1389- Discard All Changes
1389+ { t ( "discardAllChanges" ) }
13901390 </ Button >
13911391 ) }
13921392 </ div >
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export default function ResourceRules(props: {
134134 // Add navigation protection for local target changes
135135 const { setIsNavigating : setTargetNavigating } = useUnsavedChanges ( {
136136 hasUnsavedChanges : hasLocalTargetChanges ,
137- message : "You have unsaved Rules changes that will be lost if you leave this page."
137+ message : t ( "unsavedChangesWarning" )
138138 } ) ;
139139
140140 const handleDiscardAllChanges = ( ) => {
@@ -813,7 +813,7 @@ export default function ResourceRules(props: {
813813 variant = "outline"
814814 onClick = { handleDiscardAllChanges }
815815 >
816- Discard All Changes
816+ { t ( "discardAllChanges" ) }
817817 </ Button >
818818 ) }
819819 </ div >
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ export default function Page() {
232232 // Add navigation protection for local target changes
233233 const { setIsNavigating : setTargetNavigating } = useUnsavedChanges ( {
234234 hasUnsavedChanges : hasLocalTargetChanges ,
235- message : "You have unsaved target changes that will be lost if you leave this page."
235+ message : t ( "unsavedChangesWarning" )
236236 } ) ;
237237
238238 // Form tracking for unsaved changes
@@ -1498,7 +1498,7 @@ export default function Page() {
14981498 variant = "outline"
14991499 onClick = { handleDiscardAllChanges }
15001500 >
1501- Discard All Changes
1501+ { t ( "discardAllChanges" ) }
15021502 </ Button >
15031503 ) }
15041504 </ div >
Original file line number Diff line number Diff line change @@ -631,7 +631,7 @@ WantedBy=default.target`
631631 { hasUnsavedChanges && (
632632 < UnsavedChangesIndicator
633633 hasUnsavedChanges = { hasUnsavedChanges }
634- variant = "alert "
634+ variant = "badge "
635635 />
636636 ) }
637637 < SettingsSectionForm >
You can’t perform that action at this time.
0 commit comments