We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb7b95 commit 1776679Copy full SHA for 1776679
src/renderer/components/snippets/SnippetListItem.vue
@@ -182,9 +182,17 @@ const onClickContextMenu = async () => {
182
}
183
184
if (action === 'favorites') {
185
- await snippetStore.patchSnippetsById(props.id, {
186
- isFavorites: data
187
- })
+ if (snippetStore.selectedIds.length) {
+ for (const id of snippetStore.selectedIds) {
+ await snippetStore.patchSnippetsById(id, {
188
+ isFavorites: data
189
+ })
190
+ }
191
+ } else {
192
+ await snippetStore.patchSnippetsById(props.id, {
193
194
195
196
197
if (data) {
198
track('snippets/add-to-favorites')
0 commit comments