Disable certain settings

This commit is contained in:
Eduard Urbach 2017-06-24 16:31:54 +02:00
parent 49a6d8b7fa
commit 4dfb14904a
2 changed files with 7 additions and 7 deletions

View File

@ -20,9 +20,9 @@ component Settings(user *arn.User)
InputText("Accounts.AnimePlanet.Nick", user.Accounts.Kitsu.Nick, "Kitsu", "Your username on kitsu.io")
InputText("Accounts.AnimePlanet.Nick", user.Accounts.AnimePlanet.Nick, "AnimePlanet", "Your username on anime-planet.com")
.widget.mountable(data-api="/api/settings/" + user.ID)
h3.widget-title
Icon("cogs")
span Settings
//- .widget.mountable(data-api="/api/settings/" + user.ID)
//- h3.widget-title
//- Icon("cogs")
//- span Settings
InputText("TitleLanguage", user.Settings().TitleLanguage, "Title language", "Language of anime titles")
//- InputText("TitleLanguage", user.Settings().TitleLanguage, "Title language", "Language of anime titles")

View File

@ -158,8 +158,8 @@ export class AnimeNotifier {
}
onKeyDown(e: KeyboardEvent) {
// Ctrl + Q = Search
if(e.ctrlKey && e.keyCode == 81) {
// F = Search
if(e.keyCode == 70) {
let search = this.app.find("search") as HTMLInputElement
search.focus()