Hidden RoomLanguageSelector (#8952)

This commit is contained in:
Alexander Platov
2025-05-16 16:30:43 +07:00
committed by GitHub
parent d0dc3076e0
commit 04b01acad0
4 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -60,7 +60,8 @@ import {
TypeRef,
TypeString,
UX,
TypeBoolean
TypeBoolean,
Hidden
} from '@hcengineering/model'
import calendar, { TEvent, TSchedule } from '@hcengineering/model-calendar'
import core, { TAttachedDoc, TDoc } from '@hcengineering/model-core'
@@ -110,6 +111,7 @@ export class TRoom extends TDoc implements Room {
y!: number
@Prop(TypeString(), love.string.Language, { editor: love.component.RoomLanguageEditor })
@Hidden()
language!: RoomLanguage
@Prop(TypeBoolean(), love.string.StartWithTranscription)
@@ -184,11 +184,11 @@
</script>
<ControlBarContainer bind:noLabel>
<svelte:fragment slot="right">
<!-- <svelte:fragment slot="right">
{#if $isConnected && isTranscriptionAllowed() && $isTranscription}
<RoomLanguageSelector {room} kind="icon" />
{/if}
</svelte:fragment>
</svelte:fragment> -->
<svelte:fragment slot="center">
{#if room._id !== love.ids.Reception}
<ModernButton
@@ -196,9 +196,9 @@
<span class="overflow-label text-md flex-grow">
<Label label={getRoomLabel(room, $personByIdStore)} />
</span>
{#if !isOffice(room)}
<!-- {#if !isOffice(room)}
<RoomLanguage {room} />
{/if}
{/if} -->
{#if room.access === RoomAccess.DND || room.type === RoomType.Video}
<div class="flex-row-center flex-no-shrink h-full flex-gap-2">
{#if room.access === RoomAccess.DND}
@@ -33,12 +33,12 @@
</script>
<div class="antiGrid">
<div class="antiGrid-row">
<!-- <div class="antiGrid-row">
<div class="antiGrid-row__header">
<Label label={ui.string.Language} />
</div>
<RoomLanguageSelector {room} />
</div>
</div> -->
<div class="antiGrid-row">
<div class="antiGrid-row__header">
<Label label={love.string.StartWithTranscription} />