mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
[CORL-239, CORL-128] Support disabled commenting and closed stories in Stream (#2205)
* feat: closed story + disabled commenting * test: add feature test and fix bugs * fix: snapshot * fix: isClosed can't be null * fix: remove duplicate DeepPartial type * fix: border color
This commit is contained in:
@@ -3,6 +3,14 @@ export enum ERROR_TYPES {
|
||||
}
|
||||
|
||||
export enum ERROR_CODES {
|
||||
/**
|
||||
* STORY_CLOSED is used when submitting a comment on a closed story.
|
||||
*/
|
||||
STORY_CLOSED = "STORY_CLOSED",
|
||||
/**
|
||||
* COMMENTING_DISABLED is used when submitting a comment while commenting has been disabled.
|
||||
*/
|
||||
COMMENTING_DISABLED = "COMMENTING_DISABLED",
|
||||
/**
|
||||
* COMMENT_BODY_TOO_SHORT is used when a submitted comment body is too short.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user