Create shared toggle component to re-use
This commit is contained in:
@@ -75,8 +75,8 @@ export class NodeComponent implements OnInit {
|
||||
this.selectedSocketIndex = index;
|
||||
}
|
||||
|
||||
channelsListModeChange(e) {
|
||||
if (e.target.checked === true) {
|
||||
channelsListModeChange(toggle) {
|
||||
if (toggle === true) {
|
||||
this.channelsListMode = 'map';
|
||||
} else {
|
||||
this.channelsListMode = 'list';
|
||||
|
||||
Reference in New Issue
Block a user