Display and edit days, codes, and comments working.
This commit is contained in:
parent
c5fe7be77b
commit
cdd0a01fab
@ -31,7 +31,7 @@ export function EditableHourCode({
|
|||||||
if (originalText === newCode) {
|
if (originalText === newCode) {
|
||||||
// Nothing to do here
|
// Nothing to do here
|
||||||
console.log("Skipping.");
|
console.log("Skipping.");
|
||||||
selectNext(i + 1);
|
selectHourCode(i + 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (newCode == "") {
|
if (newCode == "") {
|
||||||
@ -51,7 +51,7 @@ export function EditableHourCode({
|
|||||||
code: newCode ?? "",
|
code: newCode ?? "",
|
||||||
comment: hour.comment,
|
comment: hour.comment,
|
||||||
})
|
})
|
||||||
selectNext(i + 1);
|
selectHourCode(i + 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export function EditableHourComment({
|
|||||||
let newComment: string | null = ref.current?.value ?? null;
|
let newComment: string | null = ref.current?.value ?? null;
|
||||||
if (originalText == newComment) {
|
if (originalText == newComment) {
|
||||||
// Nothing to do here
|
// Nothing to do here
|
||||||
selectNext(hour.time + 1);
|
selectHourComment(hour.time + 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (newComment == "") {
|
if (newComment == "") {
|
||||||
@ -50,7 +50,7 @@ export function EditableHourComment({
|
|||||||
comment: newComment,
|
comment: newComment,
|
||||||
code: hour.categoryCode.toString(),
|
code: hour.categoryCode.toString(),
|
||||||
})
|
})
|
||||||
selectNext(hour.time + 1);
|
selectHourComment(hour.time + 1);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<input
|
<input
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user