Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 22, 2023
1 parent 01e880e commit a68f5fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions webapp/src/views/CollectionPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default {
console.log("save clicked!");
tinymce.editors.forEach((editor) => editor.save());
saveCollection(this.collection_id);
this.lastModified = "just now";
},
async getCollection() {
await getCollectionData(this.collection_id);
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/views/EditPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default {
editor.isDirty() && editor.save();
});
saveItem(this.item_id);
this.lastModified = "just now";
},
getSampleData() {
getItemData(this.item_id).then(() => {
Expand All @@ -195,7 +196,7 @@ export default {
this.lastModified = "Unknown";
} else {
// API dates are in UTC but missing Z suffix
const save_date = new Date(item_date);
const save_date = new Date(item_date + "Z");
this.lastModified = formatDistanceToNow(save_date, { addSuffix: true });
}
},
Expand Down

0 comments on commit a68f5fa

Please sign in to comment.