fix task validation to not allow end time before created time, and disallow <=0 amounts.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -10,10 +10,12 @@
|
||||
export let log: LogResult = null;
|
||||
|
||||
let taskIconName: IconName = "question";
|
||||
let itemIconName: IconName = "question";
|
||||
let mdLogEdit: ModalData;
|
||||
let mdLogDelete: ModalData;
|
||||
|
||||
$: taskIconName = log.task.icon as IconName;
|
||||
$: itemIconName = log.item.icon as IconName;
|
||||
$: mdLogEdit = {name: "log.edit", log};
|
||||
$: mdLogDelete = {name: "log.delete", log};
|
||||
</script>
|
||||
@@ -31,7 +33,7 @@
|
||||
<p>{log.description}</p>
|
||||
<div class="item">
|
||||
<div class="item-icon">
|
||||
<Icon name={log.item.icon} />
|
||||
<Icon name={itemIconName} />
|
||||
</div>
|
||||
<div class="item-name">{log.item.name} ({log.item.groupWeight})</div>
|
||||
</div>
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
projectStore.markStale();
|
||||
fpProjectStore.markStale();
|
||||
modalStore.close();
|
||||
}).catch(err => {
|
||||
error = err.message ? err.message : err.toString();
|
||||
})
|
||||
|
||||
error = null;
|
||||
|
||||
@@ -33,6 +33,8 @@ import Checkbox from "../components/Checkbox.svelte";
|
||||
goalStore.markStale();
|
||||
fpGoalStore.markStale();
|
||||
modalStore.close();
|
||||
}).catch(err => {
|
||||
error = err.message ? err.message : err.toString();
|
||||
})
|
||||
|
||||
error = null;
|
||||
|
||||
Reference in New Issue
Block a user