Start time on current day only, format buttons

This commit is contained in:
manubo
2019-09-30 17:15:52 +02:00
parent d9a2516b37
commit 9f2d9ab214
4 changed files with 50 additions and 10 deletions

View File

@@ -100,7 +100,7 @@ class App extends Component {
task_id: this.task?.value,
billable: this.billable,
hours: "",
seconds: this.changeset.hours && new TimeInputParser(this.changeset.hours).parseSeconds(),
seconds: new TimeInputParser(this.changeset.hours).parseSeconds(),
description: service?.description,
tag: "",
}
@@ -110,8 +110,6 @@ class App extends Component {
componentDidMount() {
window.addEventListener("keydown", this.handleKeyDown)
console.log(window.document.body.scrollHeight)
console.log(window.document.body)
parent.postMessage(window.document.body.scrollHeight, "*")
chrome.runtime.onMessage.addListener(this.handleSetFormErrors)
}