X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDeleteAlbumPage.kt;h=02a0f6550a69c52e1c7553a0819c81d1102b89f5;hp=eff79b95fddf7b17eac177ecc35ca60a8b613ff1;hb=e1ea69b3822aefc6d1dd1f1cebe30980f79ae021;hpb=d42cbb447fe4751f8de6e5130bfa7e3976309969 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) {