clean up logs modals and fix progress bars counting on completed but N<M/M task progress.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import goalStore, { fpGoalStore } from "./goal";
|
||||
import groupStore from "./group";
|
||||
import logStore from "./logs";
|
||||
import projectStore, { fpProjectStore } from "./project";
|
||||
import taskStore, { fpTaskStore } from "./tasks";
|
||||
|
||||
type ModelName = "goal" | "project" | "task" | "group" | "item" | "log"
|
||||
|
||||
export default function markStale(...models: ModelName[]) {
|
||||
if (models.includes("goal")) {
|
||||
goalStore.markStale();
|
||||
fpGoalStore.markStale();
|
||||
}
|
||||
if (models.includes("project")) {
|
||||
projectStore.markStale();
|
||||
fpProjectStore.markStale();
|
||||
}
|
||||
if (models.includes("task")) {
|
||||
taskStore.markStale();
|
||||
fpTaskStore.markStale();
|
||||
}
|
||||
if (models.includes("group")) {
|
||||
groupStore.markStale();
|
||||
}
|
||||
if (models.includes("item")) {
|
||||
// Do nothing.
|
||||
}
|
||||
if (models.includes("log")) {
|
||||
logStore.markStale();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user