@@ -277,15 +277,15 @@ return view.extend({
277277
278278 o = s . taboption ( "tools" , form . Button , "_replace_mapsh" ) ;
279279 o . title = " " ;
280- o . inputtitle = _ ( "Replace MAP.sh " ) ;
280+ o . inputtitle = _ ( "Replace" ) ;
281281 o . inputstyle = data . mapBackupExists ? "cbi-button-action" : "cbi-button-apply" ;
282282 o . onclick = L . bind ( function ( m ) {
283283 return this . replaceMapSh ( m ) ;
284284 } , this , m ) ;
285285
286286 o = s . taboption ( "tools" , form . Button , "_restore_mapsh" ) ;
287287 o . title = " " ;
288- o . inputtitle = _ ( "Restore Original MAP.sh " ) ;
288+ o . inputtitle = _ ( "Restore" ) ;
289289 o . inputstyle = "cbi-button-action" ;
290290 o . onclick = L . bind ( function ( m ) {
291291 return this . restoreMapSh ( m ) ;
@@ -379,8 +379,8 @@ return view.extend({
379379 mapObj . save ( )
380380 . then ( function ( ) {
381381 // Show loading message
382- ui . showModal ( _ ( 'Replacing MAP.sh ' ) , [
383- E ( 'p' , { 'class' : 'spinning' } , _ ( 'Downloading and replacing MAP.sh ...' ) )
382+ ui . showModal ( _ ( 'Replacing' ) , [
383+ E ( 'p' , { 'class' : 'spinning' } , _ ( 'Downloading...' ) )
384384 ] ) ;
385385
386386 // Execute the replace operation via fleth script
@@ -390,15 +390,15 @@ return view.extend({
390390 ui . hideModal ( ) ;
391391
392392 if ( result . code === 0 && result . stdout . trim ( ) === 'SUCCESS' ) {
393- ui . addNotification ( null , E ( 'p' , _ ( 'map.sh replaced successfully! Please restart the network interface if needed .' ) ) , 'info' ) ;
393+ ui . addNotification ( null , E ( 'p' , _ ( 'Replaced successfully! Please restart the network interface manually .' ) ) , 'info' ) ;
394394
395395 // Reload page to update backup status
396396 setTimeout ( function ( ) {
397397 window . location . reload ( ) ;
398398 } , 2000 ) ;
399399 } else {
400400 ui . addNotification ( null , E ( 'div' , [
401- E ( 'p' , _ ( 'Failed to replace MAP.sh :' ) ) ,
401+ E ( 'p' , _ ( 'Failed to replace:' ) ) ,
402402 E ( 'pre' , result . stdout || result . stderr || 'Unknown error' )
403403 ] ) , 'error' ) ;
404404 }
@@ -408,7 +408,7 @@ return view.extend({
408408 . catch ( function ( error ) {
409409 ui . hideModal ( ) ;
410410 ui . addNotification ( null , E ( 'div' , [
411- E ( 'p' , _ ( 'Error replacing MAP.sh :' ) ) ,
411+ E ( 'p' , _ ( 'Error replacing:' ) ) ,
412412 E ( 'pre' , error . message || error )
413413 ] ) , 'error' ) ;
414414 reject ( error ) ;
@@ -422,8 +422,8 @@ return view.extend({
422422 mapObj . save ( )
423423 . then ( function ( ) {
424424 // Show loading message
425- ui . showModal ( _ ( 'Restoring MAP.sh ' ) , [
426- E ( 'p' , { 'class' : 'spinning' } , _ ( 'Restoring original MAP.sh ...' ) )
425+ ui . showModal ( _ ( 'Restoring' ) , [
426+ E ( 'p' , { 'class' : 'spinning' } , _ ( 'Restoring...' ) )
427427 ] ) ;
428428
429429 // Execute the restore operation via fleth script
@@ -433,15 +433,15 @@ return view.extend({
433433 ui . hideModal ( ) ;
434434
435435 if ( result . code === 0 && result . stdout . trim ( ) === 'SUCCESS' ) {
436- ui . addNotification ( null , E ( 'p' , _ ( 'Original map.sh restored successfully! Please restart the network interface if needed .' ) ) , 'info' ) ;
436+ ui . addNotification ( null , E ( 'p' , _ ( 'Restored successfully! Please restart the network interface manually .' ) ) , 'info' ) ;
437437
438438 // Reload page to update backup status
439439 setTimeout ( function ( ) {
440440 window . location . reload ( ) ;
441441 } , 2000 ) ;
442442 } else {
443443 ui . addNotification ( null , E ( 'div' , [
444- E ( 'p' , _ ( 'Failed to restore MAP.sh :' ) ) ,
444+ E ( 'p' , _ ( 'Failed to restore:' ) ) ,
445445 E ( 'pre' , result . stdout || result . stderr || 'Unknown error' )
446446 ] ) , 'error' ) ;
447447 }
@@ -451,7 +451,7 @@ return view.extend({
451451 . catch ( function ( error ) {
452452 ui . hideModal ( ) ;
453453 ui . addNotification ( null , E ( 'div' , [
454- E ( 'p' , _ ( 'Error restoring MAP.sh :' ) ) ,
454+ E ( 'p' , _ ( 'Error restoring:' ) ) ,
455455 E ( 'pre' , error . message || error )
456456 ] ) , 'error' ) ;
457457 reject ( error ) ;
0 commit comments