implement task version history

This commit is contained in:
marlon-erler
2024-07-24 15:57:02 +02:00
parent 47fa0938e9
commit a87f025ea0
8 changed files with 152 additions and 20 deletions
+9
View File
@@ -13,3 +13,12 @@ export const StringToOption: React.StateItemConverter<string> = (
) => {
return Option(string, string, false);
};
export const VersionIdToOption: React.StateItemConverter<string> = (
versionId: string
) => {
const [date, rest] = versionId.split("T");
const [time] = rest.split(".");
const readableName = `${date} ${time}`;
return Option(readableName, versionId, false);
};