1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-29 18:19:44 +02:00

Pinned documents

Closes #278

Pin documents to the top of each space.
This commit is contained in:
sauls8t 2020-02-03 21:00:35 +00:00
parent 2b66d0096a
commit e014f5b5c1
18 changed files with 541 additions and 88 deletions

View file

@ -115,6 +115,15 @@ const (
// TypePublished happens when a document is moved from Draft to Live.
TypePublished Type = 16
// TypePinned happens when a document is pinned within space.
TypePinned Type = 17
// TypeUnpinned happens when a document is no longer pinned inside a space.
TypeUnpinned Type = 18
// TypePinSequence is when the order of sequenced documents is changed.
TypePinSequence Type = 19
)
// TypeName returns one-work descriptor for activity type
@ -152,6 +161,12 @@ func TypeName(t Type) string {
return "Search"
case TypePublished:
return "Publish"
case TypePinned:
return "Pinned"
case TypeUnpinned:
return "Unpinned"
case TypePinSequence:
return "Sequence"
}
return ""