]>
git.r.bdr.sh - rbdr/forum/blob - src/stores/actions.js
3a6d13fbe0ddc8ce62352d21d6768a9c4855d49f
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
;