Compare commits
2 commits
07c905c33e
...
f676cc1f19
Author | SHA1 | Date | |
---|---|---|---|
f676cc1f19 | |||
bdbe8a046b |
3 changed files with 9 additions and 9 deletions
|
@ -41,7 +41,7 @@
|
||||||
"prepublishOnly": "napi prepublish -t npm",
|
"prepublishOnly": "napi prepublish -t npm",
|
||||||
"universal": "napi universal",
|
"universal": "napi universal",
|
||||||
"version": "napi version",
|
"version": "napi version",
|
||||||
"format": "cargo fmt --all -- --check",
|
"format": "cargo fmt --all --",
|
||||||
"lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all -- --check"
|
"lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all --"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ export const paramDef = {
|
||||||
preventAiLearning: { type: "boolean" },
|
preventAiLearning: { type: "boolean" },
|
||||||
isBot: { type: "boolean" },
|
isBot: { type: "boolean" },
|
||||||
isCat: { type: "boolean" },
|
isCat: { type: "boolean" },
|
||||||
speakAsCat: { type: "boolean" },
|
speakAsCat: { type: "boolean", nullable: true },
|
||||||
isIndexable: { type: "boolean" },
|
isIndexable: { type: "boolean" },
|
||||||
injectFeaturedNote: { type: "boolean" },
|
injectFeaturedNote: { type: "boolean" },
|
||||||
receiveAnnouncementEmail: { type: "boolean" },
|
receiveAnnouncementEmail: { type: "boolean" },
|
||||||
|
|
|
@ -231,14 +231,14 @@ function saveFields() {
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
os.apiWithDialog("i/update", {
|
os.apiWithDialog("i/update", {
|
||||||
name: profile.name || null,
|
name: profile.name ?? undefined,
|
||||||
description: profile.description || null,
|
description: profile.description ?? undefined,
|
||||||
location: profile.location || null,
|
location: profile.location ?? undefined,
|
||||||
birthday: profile.birthday || null,
|
birthday: profile.birthday ?? undefined,
|
||||||
lang: profile.lang || null,
|
lang: profile.lang ?? undefined,
|
||||||
isBot: !!profile.isBot,
|
isBot: !!profile.isBot,
|
||||||
isCat: !!profile.isCat,
|
isCat: !!profile.isCat,
|
||||||
speakAsCat: !!profile.speakAsCat,
|
speakAsCat: profile.isCat ? !!profile.speakAsCat : undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue