mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 20:12:52 +08:00
fix: show password protected channels
This commit is contained in:
1 parent
ff508a8eb9
commit
cec2a81549
23 files changed
+189
-27
No files matched your search
@@ -25,7 +25,8 @@
|
||||
class="ws-voice-channel-row"
|
||||
data-ws-part="voice.channel-tree.row"
|
||||
:data-drag-over="memberDragDrop && dragOverChannelId === node.channel.id ? 'true' : undefined"
|
||||
:title="`双击或按 Enter 加入 ${node.channel.name} / Double-click or press Enter to join`"
|
||||
:title="`双击或按 Enter 加入 ${node.channel.name} / Double-click or press Enter to join${node.channel.passwordProtected ? ' · 需要频道密码 / Channel password required' : ''}`"
|
||||
:data-password-protected="node.channel.passwordProtected ? 'true' : undefined"
|
||||
@click="emit('select', node.channel.id)"
|
||||
@dblclick.stop.prevent="join"
|
||||
@keydown.enter.prevent.stop="join"
|
||||
@@ -33,7 +34,13 @@
|
||||
@dragleave="handleChannelDragLeave($event)"
|
||||
@drop="handleChannelDrop($event)"
|
||||
>
|
||||
<Icon class="ws-voice-channel-type" data-ws-part="voice.channel-tree.icon" name="volume" :size="14" />
|
||||
<Icon
|
||||
class="ws-voice-channel-type"
|
||||
data-ws-part="voice.channel-tree.icon"
|
||||
:name="node.channel.passwordProtected ? 'lock' : 'speaker'"
|
||||
:data-password-protected="node.channel.passwordProtected ? 'true' : 'false'"
|
||||
:size="14"
|
||||
/>
|
||||
<span class="ws-voice-channel-name" data-ws-part="voice.channel-tree.name">{{ node.channel.name }}</span>
|
||||
<span v-if="selected && !current" class="ws-voice-channel-join-hint" data-ws-part="voice.channel-tree.join-hint">双击加入</span>
|
||||
<span class="ws-voice-channel-count" data-ws-part="voice.channel-tree.count">
|
||||
|
||||
Reference in new issue
Block a user