1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

webclipper fixes

This commit is contained in:
Andrew Simachev 2024-02-26 13:50:51 +01:00
parent fd26984ecb
commit 056b43f01d
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
3 changed files with 11 additions and 16 deletions

View file

@ -170,6 +170,7 @@ const Create = observer(class Create extends React.Component<I.PageComponent, St
componentDidUpdate(): void {
this.initType();
this.placeholderCheck();
};
initSpace () {
@ -362,18 +363,10 @@ const Create = observer(class Create extends React.Component<I.PageComponent, St
const value = this.getValue();
const list = node.find('#list');
const placeholder = node.find('#placeholder');
const length = value.existing.length;
if (value.existing.length) {
list.show();
} else {
list.hide();
};
if (value.new || value.existing.length) {
placeholder.hide();
} else {
placeholder.show();
};
length ? list.show() : list.hide();
value.new || length ? placeholder.hide() : placeholder.show();
};
getValue () {