Explorar o código

Fix regression promote user (#7786)

Quick fix, while waiting for something better
Regression from https://github.com/FreshRSS/FreshRSS/pull/7771
Alexandre Alapetite hai 8 meses
pai
achega
eda66dda48
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      p/scripts/main.js

+ 6 - 0
p/scripts/main.js

@@ -2034,6 +2034,12 @@ function init_confirm_action() {
 			return confirm(str_confirmation);
 		}
 	};
+	const slider = document.getElementById('slider');
+	if (slider) {
+		slider.addEventListener('freshrss:slider-load', function (e) {
+			slider.querySelectorAll('button.confirm').forEach(function (b) { b.disabled = false; });
+		});
+	}
 	document.querySelectorAll('button.confirm').forEach(function (b) { b.disabled = false; });
 }