This commit is contained in:
kakkokari-gtyih 2024-07-04 18:33:51 +09:00
parent aab4fa9394
commit b1100eab7a

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(),
});
}
}