Skip to content

Commit

Permalink
Fix: admin-user.vueのポイント付与が「ぷりずむを付与する」のままになっている問題を修正 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Suzulu-activity authored and mattyatea committed Sep 16, 2024
1 parent d328a49 commit f9dcd13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,10 @@ export interface Locale extends ILocale {
* パスワードをリセット
*/
"resetPassword": string;
/**
* {pointName}を付与する
*/
"grantPoints": ParameterizedString<"pointName">;
/**
* 新しいパスワードは「{password}」です
*/
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ unregister: "登録を解除"
passwordLessLogin: "パスワードレスログイン"
passwordLessLoginDescription: "パスワードを使用せず、セキュリティキーやパスキーなどのみでログインします"
resetPassword: "パスワードをリセット"
grantPoints: "{pointName}を付与する"
newPasswordIs: "新しいパスワードは「{password}」です"
reduceUiAnimation: "UIのアニメーションを減らす"
share: "共有"
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/pages/admin-user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<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>
<MkButton v-if="user.host == null" inline style="margin-right: 8px;" @click="presentsPoints">{{ i18n.tsx.grantPoints({pointName: instance?.pointName ?? "Point"}) }}</MkButton>
</div>

<MkFolder>
Expand Down Expand Up @@ -230,6 +230,7 @@ import { i18n } from '@/i18n.js';
import { iAmAdmin, $i, iAmModerator } from '@/account.js';
import MkRolePreview from '@/components/MkRolePreview.vue';
import MkPagination from '@/components/MkPagination.vue';
import { instance } from "@/instance.js";

const props = withDefaults(defineProps<{
userId: string;
Expand Down

0 comments on commit f9dcd13

Please sign in to comment.