Hide Stop Generating button when no messages #921
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Previously the "Stop Generating" button would show when there wasn't a message being generated. This was cause by the logic check if cosmodb was loading.
Description
To address this we check if cosmodb
![Screenshot 2024-06-12 121349](https://private-user-images.githubusercontent.com/994856/339102061-95db8493-f157-4d5c-952a-2ffdc897244e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDg3MTcsIm5iZiI6MTczOTI0ODQxNywicGF0aCI6Ii85OTQ4NTYvMzM5MTAyMDYxLTk1ZGI4NDkzLWYxNTctNGQ1Yy05NTJhLTJmZmRjODk3MjQ0ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwNDMzMzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMzE0YjQzNDFjNTJmODJhNTdmNWIyZTg4ZDk2ZmYxZmU1ZjZkM2I4ZDA5N2EyYTg5MWZlZTc5N2IzNDI5Y2EwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Jaf5DUn-hx0fKFNO2bYvyzhyrSel1-wV0BTZoLeh9pE)
isLoading
and if there are messages in the messages array.Contribution Checklist