-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display information about mod list updating being prevented #1646
base: status-indicator-data
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,12 +314,15 @@ import CdnProvider from '../../providers/generic/connection/CdnProvider'; | |
'Refresh online mod list', | ||
'Check for any new mod releases.', | ||
async () => { | ||
if (this.$store.state.tsMods.isThunderstoreModListUpdateInProgress) { | ||
return this.$store.state.tsMods.thunderstoreModListUpdateStatus || "Updating..."; | ||
if (this.$store.getters['download/activeDownloadCount'] > 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here too it might make sense to prefer to show the current status of update if mod downloads and mod list refresh are going on at the same time. Note that while the refresh can't be started while mods are downloading, user can still start downloads while the refresh is in progress, so both can be happening in the same time. |
||
return "Updating the mod list is disabled while there are active downloads."; | ||
} | ||
if (this.$store.state.tsMods.thunderstoreModListUpdateError) { | ||
return `Error updating the mod list: ${this.$store.state.tsMods.thunderstoreModListUpdateError.message}`; | ||
} | ||
if (this.$store.state.tsMods.isThunderstoreModListUpdateInProgress) { | ||
return this.$store.state.tsMods.thunderstoreModListUpdateStatus || "Updating..."; | ||
} | ||
if (this.$store.state.tsMods.modsLastUpdated !== undefined) { | ||
return "Cache date: " + moment(this.$store.state.tsMods.modsLastUpdated).format("MMMM Do YYYY, h:mm:ss a"); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note: This part will probably be something like "The mod list will try to refresh after the downloads are finished.", or be completely refactored in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd think it will make sense to handle the update before this box is rendered, perhaps in a separate step before the preview. Then in this step we'll either say that some mods can't be imported, or list all the mods normally if they're all known by the manager.