refactor(agent): Rename 'LongKeypressAction' to 'SecondaryRoleAction' (#462)

* refactor(agent): Rename 'LongKeypressAction' to 'SecondaryRoleAction'

* build: Change the build order of the modules

* fix(user-config): Fix hasSecondaryRoleAction() calculation

* fix(user-config): fix stylelint warnings
This commit is contained in:
Róbert Kiss
2017-10-18 21:16:56 +02:00
committed by László Monda
parent 641248c9e6
commit 3ffaf918cd
15 changed files with 69 additions and 68 deletions
@@ -25,7 +25,7 @@ import {
KeystrokeAction,
Layer,
LayerName,
LongPressAction,
SecondaryRoleAction,
MouseAction,
MouseActionParam,
PlayMacroAction,
@@ -266,10 +266,10 @@ export class SvgKeyboardWrapComponent implements OnInit, OnChanges {
});
}
if (keystrokeAction.hasLongPressAction()) {
if (keystrokeAction.hasSecondaryRoleAction()) {
content.push({
name: 'Long press',
value: LongPressAction[keystrokeAction.longPressAction]
name: 'Secondary role',
value: SecondaryRoleAction[keystrokeAction.secondaryRoleAction]
});
}
return Observable.of(content);