Skip to content

Commit

Permalink
Merge branch 'bug_24408/button_for_archiving_deleting_reports_is_not_…
Browse files Browse the repository at this point in the history
…visible_pr' into branches/rudder/8.1
  • Loading branch information
Jenkins CI committed Mar 28, 2024
2 parents 277a07b + 17e4536 commit d4dc9c4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ class DatabaseManagement extends DispatchSnippet with Loggable {
JsRaw(""" $('#archiveReports').show();
$('#cleanParam').show(); """)
}

val dialog = {
val btnClass = if (action.name == "archive") { "btn-primary" }
else { "btn-danger" }
val dialog = {
<div class="callout-fade callout-info">
<div class="marker"><span class="fa fa-exclamation-triangle"></span></div>
Are you sure you want to
Expand All @@ -202,7 +203,7 @@ class DatabaseManagement extends DispatchSnippet with Loggable {
JsRaw("""$('#cleanResultText').html('%s, you can see more details in the webapp log file (<span class="text-bold">/var/log/rudder/core/rudder-webapp.log</span>)');
$('#cleanResult').show();""".format(askResult)) & cancel & updateValue
},
("class", "btn btn-action")
("class", ("btn " ++ btnClass))
)
}
</div>
Expand Down

0 comments on commit d4dc9c4

Please sign in to comment.