aboutsummaryrefslogtreecommitdiff
path: root/src/stores/actions.js
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
commita7cf03c192470cbab13edeb1aec99e0c66dede10 (patch)
tree581b4430d1de958dcb666bae80a7678332134602 /src/stores/actions.js
parent010f307346e525ac2e4239a0549d2c1a4d6d102b (diff)
Update / use typescript
Diffstat (limited to 'src/stores/actions.js')
-rw-r--r--src/stores/actions.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/stores/actions.js b/src/stores/actions.js
deleted file mode 100644
index f7fbc28..0000000
--- a/src/stores/actions.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { derived, writable } from 'svelte/store';
-
-/*
- * This is a store to set the actions in the top header.
- */
-
-const actions = writable({});
-
-export const enableTopicActions = (id) => {
-
- actions.update((actionsValue) => {
-
- actionsValue.topic = {
- id
- };
- return actionsValue;
- });
-};
-
-export const disableTopicActions = () => {
-
- actions.update((actionsValue) => {
-
- delete actionsValue.topic;
- return actionsValue;
- });
-};
-
-export const topicActions = derived(
- actions,
- ($actions) => $actions.topic
-);