This commit is contained in:
syuilo
2018-10-12 14:34:54 +09:00
parent dded76099c
commit 9b253ccb3a
6 changed files with 27 additions and 54 deletions

View File

@ -6,13 +6,17 @@ export default (os: OS) => opts => {
const o = opts || {};
if (o.renote) {
const vm = os.new(RenoteFormWindow, {
note: o.renote
note: o.renote,
animation: o.animation == null ? true : o.animation
});
if (opts.cb) vm.$once('closed', opts.cb);
document.body.appendChild(vm.$el);
} else {
const vm = os.new(PostFormWindow, {
reply: o.reply
reply: o.reply,
animation: o.animation == null ? true : o.animation
});
if (opts.cb) vm.$once('closed', opts.cb);
document.body.appendChild(vm.$el);
}
};