Skip to content

Commit bc27870

Browse files
Merge pull request #10336 from rabbitmq/remove-ff-warning-asap
Remove FF warning as soon as all features are enabled
2 parents 7b1e2c0 + 5a3584b commit bc27870

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

deps/rabbitmq_management/priv/www/js/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,10 @@ function postprocess() {
668668
"after deletion.");
669669
});
670670

671+
$('form.enable-feature-flag').on('submit', function() {
672+
full_refresh();
673+
});
674+
671675
$('label').map(function() {
672676
if ($(this).attr('for') == '') {
673677
var id = 'auto-label-' + Math.floor(Math.random()*1000000000);

deps/rabbitmq_management/priv/www/js/tmpl/feature-flags.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<p><span>&#9888;</span>Disabled!</p>
4949
<% } %>
5050
<% if (feature_flag.state == "disabled") { %>
51-
<form action="#/feature-flags-enable" method="put" style="display: inline-block">
51+
<form action="#/feature-flags-enable" method="put" style="display: inline-block" class="enable-feature-flag">
5252
<input type="hidden" name="name" value="<%= fmt_string(feature_flag.name) %>"/>
5353
<input type="submit" value="Enable" class="c"/>
5454
</form>

0 commit comments

Comments
 (0)