refactor: Keymap
This commit is contained in:
@@ -12,6 +12,6 @@
|
||||
<img src="./images/base-layer--blank.svg">
|
||||
</div>
|
||||
<svg-keyboard *ngIf="selectedKeymap?.abbreviation"
|
||||
[moduleConfig]="selectedKeymap.layers.elements[0].modules.elements">
|
||||
[moduleConfig]="selectedKeymap.layers[0].modules.elements">
|
||||
</svg-keyboard>
|
||||
</div>
|
||||
@@ -117,7 +117,7 @@ export class SvgKeyboardWrapComponent implements OnChanges {
|
||||
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
if (changes['keymap'].previousValue.abbreviation !== changes['keymap'].currentValue.abbreviation) {
|
||||
this.layers = this.keymap.layers.elements;
|
||||
this.layers = this.keymap.layers;
|
||||
this.currentLayer = 0;
|
||||
|
||||
if (this.layers.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user