This commit is contained in:
parent
cfb446c7c8
commit
fadfdb576a
@ -152,16 +152,18 @@ export function NoteCreator() {
|
||||
const ev = await buildNote();
|
||||
if (ev) {
|
||||
const events = (note.otherEvents ?? []).concat(ev);
|
||||
events.map(a => sendEventToRelays(system, a, note.selectedCustomRelays, r => {
|
||||
events.map(a =>
|
||||
sendEventToRelays(system, a, note.selectedCustomRelays, r => {
|
||||
if (CONFIG.noteCreatorToast) {
|
||||
r.forEach(rr => {
|
||||
Toastore.push({
|
||||
element: <OkResponseRow rsp={rr} />,
|
||||
expire: unixNow() + (rr.ok ? 5 : 55555)
|
||||
})
|
||||
expire: unixNow() + (rr.ok ? 5 : 55555),
|
||||
});
|
||||
});
|
||||
}
|
||||
}));
|
||||
}),
|
||||
);
|
||||
note.update(n => n.reset());
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,8 @@ export function OkResponseRow({ rsp }: { rsp: OkResponse }) {
|
||||
setResult(rsp);
|
||||
}
|
||||
|
||||
return <div className="flex items-center g16">
|
||||
return (
|
||||
<div className="flex items-center g16">
|
||||
<Icon name={r.ok ? "check" : "x"} className={r.ok ? "success" : "error"} size={24} />
|
||||
<div className="flex flex-col grow g4">
|
||||
<b>{getRelayName(r.relay)}</b>
|
||||
@ -57,4 +58,5 @@ export function OkResponseRow({ rsp }: { rsp: OkResponse }) {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user