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

Support for document draft-live publication workflows

This commit is contained in:
McMatts 2018-04-20 14:38:35 +01:00
parent bde0091a4a
commit 9235c183c5
14 changed files with 828 additions and 697 deletions

View file

@ -112,6 +112,9 @@ const (
// TypeSearched records user performing document keyword search.
// Metadata field should contain search terms.
TypeSearched Type = 15
// TypePublished happens when a document is moved from Draft to Live.
TypePublished Type = 16
)
// TypeName returns one-work descriptor for activity type
@ -147,6 +150,8 @@ func TypeName(t Type) string {
return "Version"
case TypeSearched:
return "Search"
case TypePublished:
return "Publish"
}
return ""