correction bug lancer
This commit is contained in:
@@ -160,7 +160,7 @@ $(function () {
|
||||
else if (status === 'background_ready') {
|
||||
progressHtml = `<div class="progress-container"><div class="progress-fill" style="width:0%;"></div></div>`;
|
||||
statusHtml = `<span class="status-text pending-text"><i class="fas fa-cloud-upload-alt"></i> Prêt pour tâche de fond</span>`;
|
||||
actionHtml = `<button class="btn btn-primary" data-id="${entry.id}" data-action="startBg"><i class="fas fa-play"></i> Lancer</button>`;
|
||||
actionHtml = `<button class="btn btn-primary action-btn" data-id="${entry.id}" data-action="startBg"><i class="fas fa-play"></i> Lancer</button>`;
|
||||
}
|
||||
else if (status === 'ready_stream') {
|
||||
// Transition rapide, normalement ne devrait pas rester visible
|
||||
@@ -309,11 +309,12 @@ $(function () {
|
||||
const action = $(this).data('action');
|
||||
const entry = videoEntries.find(e => e.id === entryId);
|
||||
if (!entry) return;
|
||||
|
||||
|
||||
if (action === 'login') {
|
||||
window.open(ENDPOINTS.urlAuth, "_self");
|
||||
}
|
||||
else if (action === 'startBg') {
|
||||
|
||||
if (entry.status === 'background_ready') {
|
||||
await launchBackground(entry);
|
||||
// Après fin du background, la queue pourrait reprendre s'il y a d'autres pending,
|
||||
|
||||
Reference in New Issue
Block a user