X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDismissNotificationPage.kt;h=3cb3c43ffbf2efa0626d981b67674fd530b4198f;hb=1557106d0e373f7efc15faed65f69eb567613a45;hp=9f8eeb42594a897802559af36c58a0227ed96ada;hpb=d63b7445567b65ffdbd50fa8f7ffbfea1304dff9;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/DismissNotificationPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/DismissNotificationPage.kt index 9f8eeb4..3cb3c43 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/DismissNotificationPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/DismissNotificationPage.kt @@ -4,11 +4,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 dismiss a notification. */ -class DismissNotificationPage(template: Template, webInterface: WebInterface): +class DismissNotificationPage @Inject constructor(template: Template, webInterface: WebInterface): SoneTemplatePage("dismissNotification.html", webInterface, template, "Page.DismissNotification.Title") { override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {