mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 06:18:46 +09:00
fix avatar-decoration-edit-dialog.vue
This commit is contained in:
parent
6b8d4f6761
commit
849389ed10
@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</MkInput>
|
||||
<div :class="$style.imageSelect">
|
||||
<p>{{ i18n.ts.image }}</p>
|
||||
<MkButton @click="ev => changeImage(ev, avatarDecoration)">{{ i18n.ts.selectFile }}</MkButton>
|
||||
<MkButton @click="changeImage">{{ i18n.ts.selectFile }}</MkButton>
|
||||
</div>
|
||||
<MkInput v-model="url">
|
||||
<template #label>{{ i18n.ts.imageUrl }}</template>
|
||||
@ -174,10 +174,10 @@ async function del() {
|
||||
});
|
||||
}
|
||||
|
||||
async function changeImage(ev, avatarDecoration) {
|
||||
async function changeImage(ev) {
|
||||
const file = await selectFile(ev.currentTarget ?? ev.target, null);
|
||||
if (file != null) {
|
||||
avatarDecoration.url = file.url;
|
||||
url.value = file.url;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user