Refactor: Replace NoneAction with null in JSON representation
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { NoneAction } from '../../../../config-serializer/config-items/key-action';
|
||||
import { Tab } from '../tab';
|
||||
|
||||
@Component({
|
||||
@@ -21,8 +20,8 @@ export class NoneTabComponent implements OnInit, Tab {
|
||||
return false;
|
||||
}
|
||||
|
||||
toKeyAction(): NoneAction {
|
||||
return new NoneAction();
|
||||
toKeyAction(): undefined {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ import {
|
||||
LayerName,
|
||||
MouseAction,
|
||||
MouseActionParam,
|
||||
NoneAction,
|
||||
PlayMacroAction,
|
||||
SwitchKeymapAction,
|
||||
SwitchLayerAction
|
||||
@@ -165,7 +164,7 @@ export class SvgKeyboardWrapComponent implements OnChanges {
|
||||
|
||||
showTooltip(keyAction: KeyAction, event: MouseEvent): void {
|
||||
|
||||
if (keyAction instanceof NoneAction || keyAction === undefined) {
|
||||
if (keyAction === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user