Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #24408: Button for archiving/deleting reports is not visible #5507

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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