add background/to do tasks to front page if they have deadline, add some workflow buttons on the front page tasks.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
<script lang="ts" context="module">
|
||||
let lastProjectId = "";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import stuffLogClient from "../clients/stufflog";
|
||||
import Modal from "../components/Modal.svelte";
|
||||
@@ -20,7 +24,7 @@
|
||||
taskId = md.task.id;
|
||||
verb = "Delete";
|
||||
} else if (md.name === "tasklink.add") {
|
||||
projectId = (md.project||{id:""}).id;
|
||||
projectId = (md.project||{id:""}).id || lastProjectId;
|
||||
taskId = (md.task||{id:""}).id;
|
||||
} else {
|
||||
throw new Error(`Wrong form ${md.name}`)
|
||||
@@ -41,6 +45,7 @@
|
||||
error = err.message ? err.message : err.toString();
|
||||
}).finally(() => {
|
||||
loading = false;
|
||||
lastProjectId = projectId;
|
||||
})
|
||||
} else if (deletion) {
|
||||
stuffLogClient.deleteTaskLink(projectId, taskId).then(() => {
|
||||
@@ -50,6 +55,7 @@
|
||||
error = err.message ? err.message : err.toString();
|
||||
}).finally(() => {
|
||||
loading = false;
|
||||
lastProjectId = projectId;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user