diff --git a/package.json b/package.json index 1c1eb3fb..68ef1cf4 100644 --- a/package.json +++ b/package.json @@ -39,13 +39,14 @@ "webpack-svgstore-plugin": "4.0.0" }, "dependencies": { - "@angular/common": "2.4.10", - "@angular/compiler": "2.4.10", - "@angular/core": "2.4.10", - "@angular/forms": "2.4.10", - "@angular/platform-browser": "2.4.10", - "@angular/platform-browser-dynamic": "2.4.10", - "@angular/router": "3.4.10", + "@angular/animations": "4.0.0", + "@angular/common": "4.0.0", + "@angular/compiler": "4.0.0", + "@angular/core": "4.0.0", + "@angular/forms": "4.0.0", + "@angular/platform-browser": "4.0.0", + "@angular/platform-browser-dynamic": "4.0.0", + "@angular/router": "4.0.0", "@ngrx/core": "1.2.0", "@ngrx/effects": "2.0.1", "@ngrx/store": "2.2.1", @@ -66,7 +67,7 @@ "typescript": "2.2.1", "usb": "git+https://github.com/aktary/node-usb.git", "xml-loader": "1.2.1", - "zone.js": "0.8.4" + "zone.js": "0.8.5" }, "scripts": { "postinstall": "run-p build:usb \"symlink -- -i\" ", diff --git a/shared/src/components/keymap/edit/keymap-edit.component.html b/shared/src/components/keymap/edit/keymap-edit.component.html index 3f0dd2da..3d2f31bc 100644 --- a/shared/src/components/keymap/edit/keymap-edit.component.html +++ b/shared/src/components/keymap/edit/keymap-edit.component.html @@ -1,7 +1,7 @@ - +
Sorry, there is no keymap with this abbreviation. diff --git a/shared/src/components/macro/edit/macro-edit.component.html b/shared/src/components/macro/edit/macro-edit.component.html index bee7d56c..46e55d5f 100644 --- a/shared/src/components/macro/edit/macro-edit.component.html +++ b/shared/src/components/macro/edit/macro-edit.component.html @@ -1,4 +1,4 @@ - +
There is no macro with id {{ route.params.select('id') | async }}. diff --git a/shared/src/components/popover/tab/keymap/keymap-tab.component.html b/shared/src/components/popover/tab/keymap/keymap-tab.component.html index 1846dd08..5bd905bf 100644 --- a/shared/src/components/popover/tab/keymap/keymap-tab.component.html +++ b/shared/src/components/popover/tab/keymap/keymap-tab.component.html @@ -1,7 +1,7 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/shared/src/components/popover/tab/layer/layer-tab.component.html b/shared/src/components/popover/tab/layer/layer-tab.component.html index c5f91c00..5d87b993 100644 --- a/shared/src/components/popover/tab/layer/layer-tab.component.html +++ b/shared/src/components/popover/tab/layer/layer-tab.component.html @@ -1,4 +1,4 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/shared/src/components/popover/tab/macro/macro-tab.component.html b/shared/src/components/popover/tab/macro/macro-tab.component.html index 30a5b70b..810a5879 100644 --- a/shared/src/components/popover/tab/macro/macro-tab.component.html +++ b/shared/src/components/popover/tab/macro/macro-tab.component.html @@ -1,7 +1,7 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/shared/src/components/popover/widgets/capture-keystroke/capture-keystroke-button.component.html b/shared/src/components/popover/widgets/capture-keystroke/capture-keystroke-button.component.html index 91e06d41..f9df04bf 100644 --- a/shared/src/components/popover/widgets/capture-keystroke/capture-keystroke-button.component.html +++ b/shared/src/components/popover/widgets/capture-keystroke/capture-keystroke-button.component.html @@ -3,10 +3,10 @@ (click)="start()" > - - + \ No newline at end of file diff --git a/shared/src/components/svg/keys/svg-keyboard-key/svg-keyboard-key.component.html b/shared/src/components/svg/keys/svg-keyboard-key/svg-keyboard-key.component.html index 13b8a808..11f12b88 100644 --- a/shared/src/components/svg/keys/svg-keyboard-key/svg-keyboard-key.component.html +++ b/shared/src/components/svg/keys/svg-keyboard-key/svg-keyboard-key.component.html @@ -4,7 +4,7 @@ [attr.height]="height" [attr.width]="width" [attr.fill]="fill" /> - - + diff --git a/shared/src/components/svg/wrap/svg-keyboard-wrap.component.html b/shared/src/components/svg/wrap/svg-keyboard-wrap.component.html index 0bcaa733..01dc6166 100644 --- a/shared/src/components/svg/wrap/svg-keyboard-wrap.component.html +++ b/shared/src/components/svg/wrap/svg-keyboard-wrap.component.html @@ -1,4 +1,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/shared/src/components/svg/wrap/svg-keyboard-wrap.component.ts b/shared/src/components/svg/wrap/svg-keyboard-wrap.component.ts index b22d4e09..00608e22 100644 --- a/shared/src/components/svg/wrap/svg-keyboard-wrap.component.ts +++ b/shared/src/components/svg/wrap/svg-keyboard-wrap.component.ts @@ -119,7 +119,8 @@ export class SvgKeyboardWrapComponent implements OnInit, OnChanges { if (keymapChanges) { this.popoverShown = false; this.layers = this.keymap.layers; - if (keymapChanges.previousValue.abbreviation !== keymapChanges.currentValue.abbreviation) { + if (keymapChanges.isFirstChange() || + keymapChanges.previousValue.abbreviation !== keymapChanges.currentValue.abbreviation) { this.currentLayer = 0; this.keybindAnimationEnabled = keymapChanges.isFirstChange(); } else { diff --git a/web/src/app.module.ts b/web/src/app.module.ts index 528b2a69..95da9dc5 100644 --- a/web/src/app.module.ts +++ b/web/src/app.module.ts @@ -1,6 +1,7 @@ import { NgModule, ReflectiveInjector } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { EffectsModule } from '@ngrx/effects'; import { StoreModule } from '@ngrx/store'; @@ -135,6 +136,7 @@ const storeConfig = { ], imports: [ BrowserModule, + BrowserAnimationsModule, FormsModule, DragulaModule, routing,