mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-25 02:21:52 +01:00
Keep filter when switching between pages (mostly; does not work in Notifications and Status)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@import helper._
|
||||
@(projects: Seq[ReportInfo], watchedProjects: Set[String], failedReports: Set[String])(implicit req: DefaultRequest)
|
||||
@(projects: Seq[ReportInfo], watchedProjects: Set[String], failedReports: Set[String], filter: Option[String])(implicit req: DefaultRequest)
|
||||
@button(action: Call)(label: String) = {
|
||||
@form(action, 'style -> "display: inline-block"){
|
||||
@CSRF.formField
|
||||
@@ -54,9 +54,9 @@
|
||||
<button disabled class="btn btn-link">unwatch</button>
|
||||
}else{
|
||||
@if(isWatchedDirectly){
|
||||
@button(routes.Notifications.unwatch(project.fullId))("unwatch")
|
||||
@button(routes.Notifications.unwatch(project.fullId, filter))("unwatch")
|
||||
}else{
|
||||
@button(routes.Notifications.watch(project.fullId))("watch")
|
||||
@button(routes.Notifications.watch(project.fullId, filter))("watch")
|
||||
}
|
||||
}
|
||||
@children
|
||||
|
||||
Reference in New Issue
Block a user