Removed current keymap from switch (#165)

Closes #160
This commit is contained in:
Nejc Zdovc
2016-11-20 13:24:17 +01:00
committed by József Farkas
parent 1d47f9c758
commit ac499d21f7
3 changed files with 13 additions and 8 deletions

View File

@@ -24,12 +24,13 @@ export class KeymapTabComponent implements OnInit, Tab {
}
ngOnInit() {
this.keymapOptions = this.keymaps.map((keymap: Keymap): Select2OptionData => {
return {
id: keymap.abbreviation,
text: keymap.name
};
});
this.keymapOptions = this.keymaps
.map((keymap: Keymap): Select2OptionData => {
return {
id: keymap.abbreviation,
text: keymap.name
};
});
this.keymapOptions = [
{