Fixed add-anime-lists patch

This commit is contained in:
Eduard Urbach 2017-06-22 14:32:38 +02:00
parent 067f6bfa2a
commit 4ba516f8f3
4 changed files with 8 additions and 5 deletions

View File

@ -19,7 +19,9 @@ func main() {
// Iterate over the stream
for user := range allUsers {
if user.AnimeList() == nil {
exists, err := arn.DB.Exists("AnimeList", user.ID)
if err == nil && !exists {
fmt.Println(user.Nick)
err := arn.DB.Set("AnimeList", user.ID, &arn.AnimeList{

View File

@ -65,8 +65,8 @@ export function search(arn: AnimeNotifier, search: HTMLInputElement, e: Keyboard
history.replaceState("search", null, "/search/" + term)
}
if(!term) {
arn.app.content.innerHTML = "No search term."
if(!term || term.length < 2) {
arn.app.content.innerHTML = "Please enter at least 2 characters to start searching."
return
}

View File

@ -12,7 +12,7 @@ input, textarea
:focus
color black
border 1px solid main-color !important
border 1px solid main-color
// TODO: Replace with alpha(main-color, 20%) function
box-shadow 0 0 6px rgba(248, 165, 130, 0.2)

View File

@ -47,12 +47,13 @@
border-radius 0
background text-color
border none
color white
font-size 1em
min-width 0
:focus
border none !important
border none
box-shadow none
.extra-navigation