Browse Source

fix task store not being marked stale.

main
Gisle Aune 4 years ago
parent
commit
55c1ead637
  1. 3
      svelte-ui/src/forms/ItemEditForm.svelte
  2. 3
      svelte-ui/src/forms/LogAddForm.svelte
  3. 3
      svelte-ui/src/forms/LogDeleteForm.svelte
  4. 3
      svelte-ui/src/forms/LogEditForm.svelte
  5. 3
      svelte-ui/src/forms/TaskAddForm.svelte
  6. 3
      svelte-ui/src/forms/TaskDeleteForm.svelte
  7. 3
      svelte-ui/src/forms/TaskEditForm.svelte

3
svelte-ui/src/forms/ItemEditForm.svelte

@ -5,6 +5,7 @@
import goalStore, { fpGoalStore } from "../stores/goal";
import groupStore from "../stores/group";
import projectStore, { fpProjectStore } from "../stores/project";
import taskStore, { fpTaskStore } from "../stores/tasks";
const md = $modalStore;
if (md.name !== "item.edit") {
@ -30,6 +31,8 @@
fpGoalStore.markStale();
projectStore.markStale();
fpProjectStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
modalStore.close();
}).finally(() => {
loading = false;

3
svelte-ui/src/forms/LogAddForm.svelte

@ -6,6 +6,7 @@ import Checkbox from "../components/Checkbox.svelte";
import logStore from "../stores/logs";
import modalStore from "../stores/modal";
import projectStore, { fpProjectStore } from "../stores/project";
import taskStore, { fpTaskStore } from "../stores/tasks";
import { formatFormTime } from "../utils/time";
const md = $modalStore;
@ -38,6 +39,8 @@ import logStore from "../stores/logs";
fpProjectStore.markStale();
goalStore.markStale();
fpGoalStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
logStore.markStale();
}).finally(() => {
loading = false;

3
svelte-ui/src/forms/LogDeleteForm.svelte

@ -6,6 +6,7 @@
import projectStore, { fpProjectStore } from "../stores/project";
import { formatFormTime } from "../utils/time";
import logStore from "../stores/logs";
import taskStore, { fpTaskStore } from "../stores/tasks";
const md = $modalStore;
if (md.name !== "log.delete") {
@ -31,6 +32,8 @@
goalStore.markStale();
fpGoalStore.markStale();
logStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
modalStore.close();
}).finally(() => {

3
svelte-ui/src/forms/LogEditForm.svelte

@ -6,6 +6,7 @@
import projectStore, { fpProjectStore } from "../stores/project";
import { formatFormTime } from "../utils/time";
import logStore from "../stores/logs";
import taskStore, { fpTaskStore } from "../stores/tasks";
const md = $modalStore;
if (md.name !== "log.edit") {
@ -33,6 +34,8 @@
fpProjectStore.markStale();
goalStore.markStale();
fpGoalStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
logStore.markStale();
modalStore.close();

3
svelte-ui/src/forms/TaskAddForm.svelte

@ -5,6 +5,7 @@
import type { ProjectResult } from "../models/project";
import modalStore from "../stores/modal";
import projectStore, { fpProjectStore } from "../stores/project";
import taskStore, { fpTaskStore } from "../stores/tasks";
let project: ProjectResult
let endTime = "";
@ -28,6 +29,8 @@
}).then(() => {
projectStore.markStale();
fpProjectStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
modalStore.close();
}).catch(err => {
error = err.message ? err.message : err.toString();

3
svelte-ui/src/forms/TaskDeleteForm.svelte

@ -5,6 +5,7 @@ import Checkbox from "../components/Checkbox.svelte";
import goalStore, { fpGoalStore } from "../stores/goal";
import modalStore from "../stores/modal";
import projectStore, { fpProjectStore } from "../stores/project";
import taskStore, { fpTaskStore } from "../stores/tasks";
import { formatFormTime } from "../utils/time";
const md = $modalStore;
@ -29,6 +30,8 @@ import Checkbox from "../components/Checkbox.svelte";
fpProjectStore.markStale();
goalStore.markStale();
fpGoalStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
modalStore.close();
}).catch(err => {
error = err.message ? err.message : err.toString();

3
svelte-ui/src/forms/TaskEditForm.svelte

@ -5,6 +5,7 @@ import Checkbox from "../components/Checkbox.svelte";
import goalStore, { fpGoalStore } from "../stores/goal";
import modalStore from "../stores/modal";
import projectStore, { fpProjectStore } from "../stores/project";
import taskStore, { fpTaskStore } from "../stores/tasks";
import { formatFormTime } from "../utils/time";
const md = $modalStore;
@ -35,6 +36,8 @@ import Checkbox from "../components/Checkbox.svelte";
fpProjectStore.markStale();
goalStore.markStale();
fpGoalStore.markStale();
taskStore.markStale();
fpTaskStore.markStale();
modalStore.close();
}).catch(err => {
error = err.message ? err.message : err.toString();

Loading…
Cancel
Save