Create shared toggle component to re-use

This commit is contained in:
nymkappa
2022-07-27 10:48:27 +02:00
parent 08a91d1383
commit 992e3fa7b9
7 changed files with 94 additions and 74 deletions

View File

@@ -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';