mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 03:40:25 +01:00
fix
This commit is contained in:
parent
e286545b56
commit
2a8f6c9535
1 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ import FormSlot from '@/components/form/slot.vue';
|
||||||
import MkInfo from '@/components/MkInfo.vue';
|
import MkInfo from '@/components/MkInfo.vue';
|
||||||
import { selectFile } from '@/scripts/select-file.js';
|
import { selectFile } from '@/scripts/select-file.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { signinRequired, updateAccount } from '@/account.js';
|
import { signinRequired, updateAccountPartial } from '@/account.js';
|
||||||
import type { TutorialPageCommonExpose } from '@/components/MkTutorial.vue';
|
import type { TutorialPageCommonExpose } from '@/components/MkTutorial.vue';
|
||||||
|
|
||||||
const $i = signinRequired();
|
const $i = signinRequired();
|
||||||
|
@ -58,7 +58,7 @@ watch(name, () => {
|
||||||
text: i18n.ts.yourNameContainsProhibitedWordsDescription,
|
text: i18n.ts.yourNameContainsProhibitedWordsDescription,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
updateAccount({ name: name.value });
|
updateAccountPartial({ name: name.value });
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(description, () => {
|
watch(description, () => {
|
||||||
|
@ -67,7 +67,7 @@ watch(description, () => {
|
||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
description: description.value || null,
|
description: description.value || null,
|
||||||
});
|
});
|
||||||
updateAccount({ description: description.value });
|
updateAccountPartial({ description: description.value });
|
||||||
});
|
});
|
||||||
|
|
||||||
function setAvatar(ev: MouseEvent) {
|
function setAvatar(ev: MouseEvent) {
|
||||||
|
@ -90,7 +90,7 @@ function setAvatar(ev: MouseEvent) {
|
||||||
const i = await os.apiWithDialog('i/update', {
|
const i = await os.apiWithDialog('i/update', {
|
||||||
avatarId: originalOrCropped.id,
|
avatarId: originalOrCropped.id,
|
||||||
});
|
});
|
||||||
updateAccount({ avatarId: i.avatarId, avatarUrl: i.avatarUrl });
|
updateAccountPartial({ avatarId: i.avatarId, avatarUrl: i.avatarUrl });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue