@@ -289,13 +289,24 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr
289
289
} ;
290
290
291
291
onToggle = ( e : ChangeEvent < HTMLInputElement > ) => {
292
- const { restore_specific_indices, restore_all_indices, customize_index_settings, ignore_index_settings } = RESTORE_OPTIONS ;
292
+ const {
293
+ restore_specific_indices,
294
+ restore_all_indices,
295
+ customize_index_settings,
296
+ ignore_index_settings,
297
+ restore_aliases,
298
+ } = RESTORE_OPTIONS ;
293
299
294
300
if ( e . target . id === restore_specific_indices ) {
295
301
this . setState ( { restoreSpecific : true , snapshot : _ . set ( this . state . snapshot ! , e . target . id , e . target . checked ) } ) ;
296
302
return ;
297
303
}
298
304
305
+ if ( e . target . id === restore_aliases ) {
306
+ this . setState ( { snapshot : _ . set ( this . state . snapshot ! , e . target . id , e . target . checked ) } ) ;
307
+ return ;
308
+ }
309
+
299
310
if ( e . target . id === restore_all_indices ) {
300
311
this . setState ( {
301
312
restoreSpecific : false ,
@@ -482,7 +493,7 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr
482
493
483
494
< SnapshotRestoreAdvancedOptions
484
495
getIndexSettings = { this . getIndexSettings }
485
- restoreAliases = { String ( _ . get ( snapshot , restore_aliases , true ) ) == "true" }
496
+ restoreAliases = { String ( _ . get ( snapshot , restore_aliases , false ) ) == "true" }
486
497
onRestoreAliasesToggle = { this . onToggle }
487
498
restoreClusterState = { String ( _ . get ( snapshot , include_global_state , false ) ) == "true" }
488
499
onRestoreClusterStateToggle = { this . onToggle }
0 commit comments