Skip to content

Commit

Permalink
fix:どんなポイント名でも「ぷりずむを付与する」になる問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Suzulu-activity committed Sep 15, 2024
1 parent 4f57a51 commit 0621801
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 0621801

Please sign in to comment.