X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDeleteAlbumPage.kt;h=02a0f6550a69c52e1c7553a0819c81d1102b89f5;hb=43feab5f45f23d734b641fe433d528a9e0133eaa;hp=eff79b95fddf7b17eac177ecc35ca60a8b613ff1;hpb=74cbe983cd38da24847e6247ac595cb70d8e115b;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPage.kt index eff79b9..02a0f65 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/DeleteAlbumPage.kt @@ -6,11 +6,12 @@ import net.pterodactylus.sone.web.WebInterface import net.pterodactylus.sone.web.page.FreenetRequest import net.pterodactylus.util.template.Template import net.pterodactylus.util.template.TemplateContext +import javax.inject.Inject /** * Page that lets the user delete an {@link Album}. */ -class DeleteAlbumPage(template: Template, webInterface: WebInterface): +class DeleteAlbumPage @Inject constructor(template: Template, webInterface: WebInterface): LoggedInPage("deleteAlbum.html", template, "Page.DeleteAlbum.Title", webInterface) { override fun handleRequest(freenetRequest: FreenetRequest, currentSone: Sone, templateContext: TemplateContext) {