This commit is contained in:
kakkokari-gtyih 2024-07-04 18:33:51 +09:00
parent aab4fa9394
commit b1100eab7a
1 changed files with 4 additions and 2 deletions

View File

@ -76,10 +76,12 @@ export function copyEmbedCode(entity: EmbeddableEntity, idOrUsername: string, pa
copy(getEmbedCode(`/embed/${entity}/${_idOrUsername}`, _params));
os.success();
} else {
os.popup(MkEmbedCodeGenDialog, {
const { dispose } = os.popup(MkEmbedCodeGenDialog, {
entity,
idOrUsername,
params: _params,
}, {}, 'closed');
}, {
closed: () => dispose(),
});
}
}