From c28f17abddc6464a6312e30e559cea2a924164d9 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sat, 8 Dec 2018 16:30:54 +0100 Subject: [PATCH] data: Added op text for move-in, move-out and tag, added fallback to ID for untitled chapters. --- marko/page/data/components/change/component.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/marko/page/data/components/change/component.js b/marko/page/data/components/change/component.js index c88926a..c2afe61 100644 --- a/marko/page/data/components/change/component.js +++ b/marko/page/data/components/change/component.js @@ -65,7 +65,7 @@ module.exports = class { this.state.operation += " chapter" this.state.links = [{ - text: chapter.title, + text: chapter.title || `Untitled chapter (${chapterKey.id})`, href: `/story/${storyKey.id}#${chapterKey.id}`, }] @@ -112,4 +112,7 @@ const opText = { move: "moved", edit: "edited", import: "imported", + tag: "tagged", + "move-in": "moved in", + "move-out": "moved-out", } \ No newline at end of file