X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDismissNotificationPage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDismissNotificationPage.kt;h=3cb3c43ffbf2efa0626d981b67674fd530b4198f;hp=9f8eeb42594a897802559af36c58a0227ed96ada;hb=79541fd41e316298ee7611cff98f3eb44f065f2e;hpb=6b71175d0493719bfccbf747abfd7cb45a46eaff 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) {