mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
fix
This commit is contained in:
parent
e286545b56
commit
2a8f6c9535
@ -39,7 +39,7 @@ import FormSlot from '@/components/form/slot.vue';
|
||||
import MkInfo from '@/components/MkInfo.vue';
|
||||
import { selectFile } from '@/scripts/select-file.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';
|
||||
|
||||
const $i = signinRequired();
|
||||
@ -58,7 +58,7 @@ watch(name, () => {
|
||||
text: i18n.ts.yourNameContainsProhibitedWordsDescription,
|
||||
},
|
||||
});
|
||||
updateAccount({ name: name.value });
|
||||
updateAccountPartial({ name: name.value });
|
||||
});
|
||||
|
||||
watch(description, () => {
|
||||
@ -67,7 +67,7 @@ watch(description, () => {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
description: description.value || null,
|
||||
});
|
||||
updateAccount({ description: description.value });
|
||||
updateAccountPartial({ description: description.value });
|
||||
});
|
||||
|
||||
function setAvatar(ev: MouseEvent) {
|
||||
@ -90,7 +90,7 @@ function setAvatar(ev: MouseEvent) {
|
||||
const i = await os.apiWithDialog('i/update', {
|
||||
avatarId: originalOrCropped.id,
|
||||
});
|
||||
updateAccount({ avatarId: i.avatarId, avatarUrl: i.avatarUrl });
|
||||
updateAccountPartial({ avatarId: i.avatarId, avatarUrl: i.avatarUrl });
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user