diff --git a/app/components/EventListItem.tsx b/app/components/EventListItem.tsx index 6058e1ca2..47e43716b 100644 --- a/app/components/EventListItem.tsx +++ b/app/components/EventListItem.tsx @@ -5,6 +5,7 @@ import { PublishIcon, MoveIcon, CheckboxIcon, + UnpublishIcon, } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; @@ -85,6 +86,11 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => { meta = t("{{userName}} published", opts); break; + case "documents.unpublish": + icon = ; + meta = t("{{userName}} unpublished", opts); + break; + case "documents.move": icon = ; meta = t("{{userName}} moved", opts); diff --git a/server/models/Event.ts b/server/models/Event.ts index befd7b463..239696df2 100644 --- a/server/models/Event.ts +++ b/server/models/Event.ts @@ -112,6 +112,7 @@ class Event extends IdModel { "collections.move", "collections.permission_changed", "documents.publish", + "documents.unpublish", "documents.archive", "documents.unarchive", "documents.move", diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index c616bfd45..fcc40cd4b 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -129,6 +129,7 @@ "{{userName}} deleted": "{{userName}} deleted", "{{userName}} moved from trash": "{{userName}} moved from trash", "{{userName}} published": "{{userName}} published", + "{{userName}} unpublished": "{{userName}} unpublished", "{{userName}} moved": "{{userName}} moved", "Icon": "Icon", "Show menu": "Show menu",