Skip to content

Commit

Permalink
Fix exclusion list update progress indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
anttimaki committed Mar 19, 2024
1 parent 2c4e8fe commit fa7a07f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/mixins/SplashMixin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default class SplashMixin extends Vue {
this.getRequestItem('ExclusionsList').setProgress(progress);
};
await this.$store.dispatch('tsMods/updateExclusions');
await this.$store.dispatch('tsMods/updateExclusions', showProgress);
this.getRequestItem('ExclusionsList').setProgress(100);
}
Expand Down
7 changes: 5 additions & 2 deletions src/store/modules/TsModsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ export const TsModsModule = {
},

actions: <ActionTree<State, RootState>>{
async updateExclusions({commit}) {
const exclusions = await ConnectionProvider.instance.getExclusions();
async updateExclusions(
{commit},
progressCallback?: (progress: number) => void
) {
const exclusions = await ConnectionProvider.instance.getExclusions(progressCallback);
commit('setExclusions', exclusions);
},

Expand Down

0 comments on commit fa7a07f

Please sign in to comment.