@@ -41,7 +41,7 @@ import {InputTypeOption} from './types';
41
41
export class InputSelector implements OnInit , OnDestroy {
42
42
@Input ( ) configIndex : ConfigIndex = 0 ;
43
43
44
- /** All supported model types. */
44
+ /** All supported input types. */
45
45
readonly inputTypes : InputTypeOption [ ] = [
46
46
{
47
47
id : InputTypeId . RANDOM ,
@@ -73,7 +73,7 @@ export class InputSelector implements OnInit, OnDestroy {
73
73
) { }
74
74
75
75
ngOnInit ( ) {
76
- // Add "Same as configuration 1" option when the model selector is used in
76
+ // Add "Same as configuration 1" option when the input selector is used in
77
77
// the configuration 2.
78
78
if ( this . configIndex === 1 ) {
79
79
this . inputTypes . unshift ( {
@@ -107,10 +107,10 @@ export class InputSelector implements OnInit, OnDestroy {
107
107
handleSelectionChange ( event : MatSelectChange ) {
108
108
const inputTypeId = event . value as InputTypeId ;
109
109
110
- // TODO: add logic as needed to handle selection change (e.g. show certain
111
- // UI elements when an item is selected).
110
+ // TODO: add other logic as needed to handle selection change (e.g. show
111
+ // certain UI elements when an item is selected).
112
112
113
- // Update url with selected model type id.
113
+ // Update url with selected input type id.
114
114
this . urlService . updateUrlParameters ( {
115
115
[ appendConfigIndexToKey (
116
116
UrlParamKey . SELECTED_INPUT_TYPE_ID , this . configIndex ) ] :
0 commit comments