Skip to content

Commit

Permalink
Keep requests silent
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Nov 15, 2024
1 parent 57801fb commit 1159f81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panel/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default (panel) => {
api.requests.push(id);

// start the loader if it's not a silent request
if (silent === false) {
if (silent === false && options.silent !== true) {
panel.isLoading = true;
}

Expand Down
3 changes: 2 additions & 1 deletion panel/src/panel/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export default (panel) => {

try {
await panel.api.post(api + "/changes/save", values, {
signal: this.saveAbortController.signal
signal: this.saveAbortController.signal,
silent: true
});

this.isProcessing = false;
Expand Down

0 comments on commit 1159f81

Please sign in to comment.