Skip to content

Commit

Permalink
upd: swap api out with apiWithDialog for word mute saving
Browse files Browse the repository at this point in the history
Closes #259
  • Loading branch information
Marie authored and Marie committed Dec 27, 2023
1 parent 5bc0361 commit 45b99a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/settings/mute-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ async function toggleBlockItem(item) {
}

async function saveMutedWords(mutedWords: (string | string[])[]) {
await os.api('i/update', { mutedWords });
await os.apiWithDialog('i/update', { mutedWords });
}

async function saveHardMutedWords(hardMutedWords: (string | string[])[]) {
await os.api('i/update', { hardMutedWords });
await os.apiWithDialog('i/update', { hardMutedWords });
}

const headerActions = computed(() => []);
Expand Down

0 comments on commit 45b99a4

Please sign in to comment.