summaryrefslogtreecommitdiff
path: root/packages/frontend/src/ui/deck
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-10-16 11:17:47 +0900
committerGitHub <noreply@github.com>2025-10-16 11:17:47 +0900
commit8cfd147555312b98854ba39966f9240ea25a83e4 (patch)
tree011ae016c5151faae55b010e6c81f8fcf191d8db /packages/frontend/src/ui/deck
parentchore(frontend): add tips (diff)
downloadmisskey-8cfd147555312b98854ba39966f9240ea25a83e4.tar.gz
misskey-8cfd147555312b98854ba39966f9240ea25a83e4.tar.bz2
misskey-8cfd147555312b98854ba39966f9240ea25a83e4.zip
fix(frontend): ロールポリシーによりダイレクトメッセージが無効化されている際のデッキのダイレクトメッセージカラムの挙動を改善 (#16656)
* fix(frontend): ロールポリシーによりダイレクトメッセージが無効化されている際のデッキのダイレクトメッセージカラムの挙動を改善 * Update Changelog
Diffstat (limited to 'packages/frontend/src/ui/deck')
-rw-r--r--packages/frontend/src/ui/deck/chat-column.vue11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/frontend/src/ui/deck/chat-column.vue b/packages/frontend/src/ui/deck/chat-column.vue
index 791af2e44c..0015447e22 100644
--- a/packages/frontend/src/ui/deck/chat-column.vue
+++ b/packages/frontend/src/ui/deck/chat-column.vue
@@ -7,21 +7,26 @@ SPDX-License-Identifier: AGPL-3.0-only
<XColumn :column="column" :isStacked="isStacked">
<template #header><i class="ti ti-messages" style="margin-right: 8px;"></i>{{ column.name || i18n.ts._deck._columns.chat }}</template>
- <div style="padding: 8px;">
- <MkChatHistories/>
+ <div style="padding: 8px;" class="_gaps">
+ <MkInfo v-if="$i.policies.chatAvailability === 'readonly'">{{ i18n.ts._chat.chatIsReadOnlyForThisAccountOrServer }}</MkInfo>
+ <MkInfo v-else-if="$i.policies.chatAvailability === 'unavailable'" warn>{{ i18n.ts._chat.chatNotAvailableForThisAccountOrServer }}</MkInfo>
+ <MkChatHistories v-if="$i.policies.chatAvailability !== 'unavailable'"/>
</div>
</XColumn>
</template>
<script lang="ts" setup>
-import { ref } from 'vue';
+import { ensureSignin } from '@/i.js';
import { i18n } from '../../i18n.js';
import XColumn from './column.vue';
import type { Column } from '@/deck.js';
+import MkInfo from '@/components/MkInfo.vue';
import MkChatHistories from '@/components/MkChatHistories.vue';
defineProps<{
column: Column;
isStacked: boolean;
}>();
+
+const $i = ensureSignin();
</script>