Cleanup
This commit is contained in:
parent
ca1c5838bf
commit
50c0e543d5
@ -25,7 +25,7 @@ component AnimeListItem(viewUser *arn.User, item *arn.AnimeListItem, anime *arn.
|
||||
InputTextArea("Notes", item.Notes, "Notes", "Your notes")
|
||||
|
||||
.buttons.mountable
|
||||
a.ajax.button(href="/+" + viewUser.Nick + "/animelist")
|
||||
a.ajax.button(href="/+" + viewUser.Nick + "/animelist/watching")
|
||||
Icon("list")
|
||||
span View collection
|
||||
a.ajax.button(href=anime.Link())
|
||||
|
@ -257,7 +257,7 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen
|
||||
throw body
|
||||
}
|
||||
|
||||
return arn.app.load("/+" + userNick + "/animelist")
|
||||
return arn.app.load("/+" + userNick + "/animelist/watching")
|
||||
})
|
||||
.catch(console.error)
|
||||
.then(() => arn.loading(false))
|
||||
|
22
tests.go
22
tests.go
@ -30,10 +30,30 @@ var routeTests = map[string][]string{
|
||||
"/+Akyoto/animelist",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/:id": []string{
|
||||
"/user/:nick/animelist/anime/:id": []string{
|
||||
"/+Akyoto/animelist/7929",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/watching": []string{
|
||||
"/+Akyoto/animelist/watching",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/completed": []string{
|
||||
"/+Akyoto/animelist/completed",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/planned": []string{
|
||||
"/+Akyoto/animelist/planned",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/hold": []string{
|
||||
"/+Akyoto/animelist/hold",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/dropped": []string{
|
||||
"/+Akyoto/animelist/dropped",
|
||||
},
|
||||
|
||||
// Pages
|
||||
"/anime/:id": []string{
|
||||
"/anime/1",
|
||||
|
Loading…
Reference in New Issue
Block a user