chore: Update translations

This commit is contained in:
2023-12-02 22:45:52 +00:00
parent cfb446c7c8
commit fadfdb576a
3 changed files with 70 additions and 66 deletions

View File

@ -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 => {
if (CONFIG.noteCreatorToast) {
r.forEach(rr => {
Toastore.push({
element: <OkResponseRow rsp={rr} />,
expire: unixNow() + (rr.ok ? 5 : 55555)
})
});
}
}));
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),
});
});
}
}),
);
note.update(n => n.reset());
}
}
@ -327,18 +329,18 @@ export function NoteCreator() {
onChange={e => {
note.update(
v =>
(v.selectedCustomRelays =
// set false if all relays selected
e.target.checked &&
(v.selectedCustomRelays =
// set false if all relays selected
e.target.checked &&
note.selectedCustomRelays &&
note.selectedCustomRelays.length == a.length - 1
? undefined
: // otherwise return selectedCustomRelays with target relay added / removed
a.filter(el =>
el === r
? e.target.checked
: !note.selectedCustomRelays || note.selectedCustomRelays.includes(el),
)),
? undefined
: // otherwise return selectedCustomRelays with target relay added / removed
a.filter(el =>
el === r
? e.target.checked
: !note.selectedCustomRelays || note.selectedCustomRelays.includes(el),
)),
);
}}
/>
@ -407,9 +409,9 @@ export function NoteCreator() {
onChange={e =>
note.update(
v =>
(v.zapSplits = arr.map((vv, ii) =>
ii === i ? { ...vv, weight: Number(e.target.value) } : vv,
)),
(v.zapSplits = arr.map((vv, ii) =>
ii === i ? { ...vv, weight: Number(e.target.value) } : vv,
)),
)
}
/>
@ -656,4 +658,4 @@ export function NoteCreator() {
{noteCreatorForm()}
</Modal>
);
}
}