Tweak space creation copy and auto focus fields
This commit is contained in:
parent
1fbbb67e74
commit
76dffdcb2c
4 changed files with 40 additions and 30 deletions
|
@ -41,7 +41,7 @@ const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
|||
const success = await copyPlaintext(permalinkCreator.forRoom());
|
||||
const text = success ? _t("Copied!") : _t("Failed to copy");
|
||||
setCopiedText(text);
|
||||
await sleep(10);
|
||||
await sleep(5000);
|
||||
if (copiedText === text) { // if the text hasn't changed by another click then clear it after some time
|
||||
setCopiedText(_t("Click to copy"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue