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