Fix status flow loading when modal opens [SCI-9212]

This commit is contained in:
Martin Artnik 2023-09-06 15:33:58 +02:00
parent 60f9814eca
commit f22d777c2c

View file

@ -2,10 +2,7 @@
(function() {
$('.task-sharing-and-flows').on('click', '#viewTaskFlow', function() {
$('#statusFlowModal').modal('show');
});
$('#statusFlowModal').on('show.bs.modal', function() {
$('#statusFlowModal').off('shown.bs.modal').on('shown.bs.modal', function() {
var $modalBody = $(this).find('.modal-body');
animateSpinner($modalBody);
$.get($(this).data('status-flow-url'), function(result) {
@ -14,6 +11,9 @@
});
});
$('#statusFlowModal').modal('show');
});
function checkStatusState() {
$.getJSON($('.status-flow-dropdown').data('status-check-url'), (statusData) => {
if (statusData.status_changing) {