mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-11 18:20:27 +09:00
fix task iconObject
This commit is contained in:
parent
8c28de4035
commit
cb8054b2cc
1 changed files with 6 additions and 4 deletions
|
@ -336,8 +336,8 @@ const IconObject = observer(class IconObject extends React.Component<Props> {
|
|||
Preview.tooltipShow({ text: tooltip, element: node, typeY: tooltipY });
|
||||
};
|
||||
|
||||
if (canEdit && (object.layout == I.ObjectLayout.Task) && !object.done) {
|
||||
node.find('#checkbox').attr({ src: CheckboxTask[tc][1] });
|
||||
if (canEdit && (object.layout == I.ObjectLayout.Task)) {
|
||||
node.find('#checkbox').attr({ src: object.done ? CheckboxTask[tc][2] : CheckboxTask[tc][1] });
|
||||
};
|
||||
|
||||
if (onMouseEnter) {
|
||||
|
@ -353,8 +353,8 @@ const IconObject = observer(class IconObject extends React.Component<Props> {
|
|||
|
||||
Preview.tooltipHide(false);
|
||||
|
||||
if (canEdit && (object.layout == I.ObjectLayout.Task) && !object.done) {
|
||||
node.find('#checkbox').attr({ src: CheckboxTask[tc][0] });
|
||||
if (canEdit && (object.layout == I.ObjectLayout.Task)) {
|
||||
node.find('#checkbox').attr({ src: object.done ? CheckboxTask[tc][2] : CheckboxTask[tc][0] });
|
||||
};
|
||||
|
||||
if (onMouseLeave) {
|
||||
|
@ -388,6 +388,8 @@ const IconObject = observer(class IconObject extends React.Component<Props> {
|
|||
if (isEmoji) {
|
||||
this.onEmoji(e);
|
||||
};
|
||||
|
||||
this.onMouseLeave(e);
|
||||
};
|
||||
|
||||
onEmoji (e: any) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue