@@ -5,6 +5,7 @@ import {
|
|||||||
PublishIcon,
|
PublishIcon,
|
||||||
MoveIcon,
|
MoveIcon,
|
||||||
CheckboxIcon,
|
CheckboxIcon,
|
||||||
|
UnpublishIcon,
|
||||||
} from "outline-icons";
|
} from "outline-icons";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -85,6 +86,11 @@ const EventListItem = ({ event, latest, document, ...rest }: Props) => {
|
|||||||
meta = t("{{userName}} published", opts);
|
meta = t("{{userName}} published", opts);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "documents.unpublish":
|
||||||
|
icon = <UnpublishIcon color="currentColor" size={16} />;
|
||||||
|
meta = t("{{userName}} unpublished", opts);
|
||||||
|
break;
|
||||||
|
|
||||||
case "documents.move":
|
case "documents.move":
|
||||||
icon = <MoveIcon color="currentColor" size={16} />;
|
icon = <MoveIcon color="currentColor" size={16} />;
|
||||||
meta = t("{{userName}} moved", opts);
|
meta = t("{{userName}} moved", opts);
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ class Event extends IdModel {
|
|||||||
"collections.move",
|
"collections.move",
|
||||||
"collections.permission_changed",
|
"collections.permission_changed",
|
||||||
"documents.publish",
|
"documents.publish",
|
||||||
|
"documents.unpublish",
|
||||||
"documents.archive",
|
"documents.archive",
|
||||||
"documents.unarchive",
|
"documents.unarchive",
|
||||||
"documents.move",
|
"documents.move",
|
||||||
|
|||||||
@@ -129,6 +129,7 @@
|
|||||||
"{{userName}} deleted": "{{userName}} deleted",
|
"{{userName}} deleted": "{{userName}} deleted",
|
||||||
"{{userName}} moved from trash": "{{userName}} moved from trash",
|
"{{userName}} moved from trash": "{{userName}} moved from trash",
|
||||||
"{{userName}} published": "{{userName}} published",
|
"{{userName}} published": "{{userName}} published",
|
||||||
|
"{{userName}} unpublished": "{{userName}} unpublished",
|
||||||
"{{userName}} moved": "{{userName}} moved",
|
"{{userName}} moved": "{{userName}} moved",
|
||||||
"Icon": "Icon",
|
"Icon": "Icon",
|
||||||
"Show menu": "Show menu",
|
"Show menu": "Show menu",
|
||||||
|
|||||||
Reference in New Issue
Block a user