update
This commit is contained in:
parent
94bca758ab
commit
26bb2d42f9
5 changed files with 73 additions and 4 deletions
|
|
@ -98,6 +98,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<div>
|
||||
<MkButton v-if="user.host == null" inline style="margin-right: 8px;" @click="resetPassword"><i class="ti ti-key"></i> {{ i18n.ts.resetPassword }}</MkButton>
|
||||
</div>
|
||||
<div>
|
||||
<MkButton v-if="user.host == null" inline style="margin-right: 8px;" @click="presentsPoints">ぷりずむを付与する</MkButton>
|
||||
</div>
|
||||
|
||||
<MkFolder>
|
||||
<template #icon><i class="ti ti-license"></i></template>
|
||||
|
|
@ -312,6 +315,15 @@ async function resetPassword() {
|
|||
}
|
||||
}
|
||||
|
||||
async function presentsPoints() {
|
||||
const { canceled, result } = await os.inputText({
|
||||
title: 'ポイント',
|
||||
});
|
||||
if (canceled) return;
|
||||
if (result === null) return;
|
||||
await misskeyApi('admin/accounts/present-points', { userId: user.value.id, points: parseInt(result) });
|
||||
}
|
||||
|
||||
async function toggleSuspend(v) {
|
||||
const confirm = await os.confirm({
|
||||
type: 'warning',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue