]>
git.r.bdr.sh - rbdr/forum/blob - src/stores/actions.js
1 import { writable
} from 'svelte/store';
4 * This is a store to set the actions in the top header.
7 export const actions
= writable({});
9 export const enableTopicActions
= (id
) => {
11 actions
.update((actionsValue
) => {
13 actionsValue
.topic_id
= id
;
18 export const disableTopicActions
= () => {
20 actions
.update((actionsValue
) => {
22 delete actionsValue
.id
;