mirror of
https://github.com/documize/community.git
synced 2025-07-29 18:19:44 +02:00
parent
2b66d0096a
commit
e014f5b5c1
18 changed files with 541 additions and 88 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue