feat: Unified icon picker (#7038)
This commit is contained in:
@@ -71,13 +71,18 @@ class Revision extends IdModel<
|
||||
@Column(DataType.JSONB)
|
||||
content: ProsemirrorData;
|
||||
|
||||
/**
|
||||
* An emoji to use as the document icon,
|
||||
* This is used as fallback (for backward compat) when icon is not set.
|
||||
*/
|
||||
@Length({
|
||||
max: 1,
|
||||
msg: `Emoji must be a single character`,
|
||||
max: 50,
|
||||
msg: `Emoji must be 50 characters or less`,
|
||||
})
|
||||
@Column
|
||||
emoji: string | null;
|
||||
|
||||
/** An icon to use as the document icon. */
|
||||
@Length({
|
||||
max: 50,
|
||||
msg: `icon must be 50 characters or less`,
|
||||
@@ -134,7 +139,7 @@ class Revision extends IdModel<
|
||||
title: document.title,
|
||||
text: document.text,
|
||||
emoji: document.emoji,
|
||||
icon: document.emoji,
|
||||
icon: document.icon,
|
||||
color: document.color,
|
||||
content: document.content,
|
||||
userId: document.lastModifiedById,
|
||||
|
||||
Reference in New Issue
Block a user