Skip to content

Commit

Permalink
Tirgger loading indicator on route change
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Jul 9, 2024
1 parent ef3db21 commit 7e0b79f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shell/initialize/entry-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ async function render(to, from, next) {
next: _next.bind(this)
});

if (this.$loading.start && !this.$loading.manual) {
this.$loading.start();
}

// Get route's matched components
const matches = [];
const Components = getMatchedComponents(to, matches);
Expand Down

0 comments on commit 7e0b79f

Please sign in to comment.