Skip to content

Commit

Permalink
Hide valve's queue items, display button after error
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Jul 7, 2024
1 parent 70ced12 commit 4e9f096
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/store/explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ button.addEventListener( 'click', function( )
{
StartViewTransition( () =>
{
button.remove();
button.style.display = 'none';
GenerateQueue();
} );
}, false );
Expand All @@ -69,6 +69,18 @@ function GenerateQueue( generateFails = 0 )
return;
}

const valveQueueEl = document.getElementById( 'discovery_queue_ctn' );

if( valveQueueEl )
{
valveQueueEl.style.display = 'none';
}

if( emptyQueue )
{
emptyQueue.style.display = 'block';
}

exploreStatus.textContent = _t( 'explore_generating' );

const params = new URLSearchParams();
Expand Down Expand Up @@ -132,6 +144,7 @@ function GenerateQueue( generateFails = 0 )

if( ++fails >= 10 )
{
button.style.display = '';
exploreStatus.textContent = _t( 'explore_failed_to_clear_too_many' );
return;
}
Expand Down Expand Up @@ -166,6 +179,7 @@ function GenerateQueue( generateFails = 0 )

if( ++generateFails >= 10 )
{
button.style.display = '';
exploreStatus.textContent = _t( 'explore_failed_to_clear_too_many' );
return;
}
Expand Down

0 comments on commit 4e9f096

Please sign in to comment.