mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 13:17:45 +02:00
Allow to edit description of Channel (#9607)
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
@@ -195,7 +195,7 @@ export function createModel (builder: Builder): void {
|
||||
)
|
||||
|
||||
builder.mixin(chunter.class.Channel, core.class.Class, chunter.mixin.ObjectChatPanel, {
|
||||
ignoreKeys: ['archived', 'collaborators', 'lastMessage', 'pinned', 'topic', 'description', 'members', 'owners']
|
||||
ignoreKeys: ['archived', 'collaborators', 'lastMessage', 'pinned', 'description', 'members', 'owners']
|
||||
})
|
||||
|
||||
builder.mixin(chunter.class.DirectMessage, core.class.Class, chunter.mixin.ObjectChatPanel, {
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Všechny kanály",
|
||||
"AllContacts": "Všechny kontakty",
|
||||
"NewChannel": "Nový kanál",
|
||||
"DescriptionOptional": "Popis (volitelné)",
|
||||
"TopicOptional": "Téma (volitelné)",
|
||||
"Visibility": "Viditelnost",
|
||||
"Public": "Veřejné",
|
||||
"Private": "Soukromé",
|
||||
@@ -134,4 +134,4 @@
|
||||
"NoThreadsYet": "Zatím nejsou žádné vlákna.",
|
||||
"SummarizeMessages": "Shrnout diskuzi"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Alle Kanäle",
|
||||
"AllContacts": "Alle Kontakte",
|
||||
"NewChannel": "Neuer Kanal",
|
||||
"DescriptionOptional": "Beschreibung (optional)",
|
||||
"TopicOptional": "Thema (optional)",
|
||||
"Visibility": "Sichtbarkeit",
|
||||
"Public": "Öffentlich",
|
||||
"Private": "Privat",
|
||||
@@ -135,4 +135,4 @@
|
||||
"NoThreadsYet": "Es gibt noch keine Threads.",
|
||||
"SummarizeMessages": "Diskussion zusammenfassen"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "All channels",
|
||||
"AllContacts": "All contacts",
|
||||
"NewChannel": "New channel",
|
||||
"DescriptionOptional": "Description (optional)",
|
||||
"TopicOptional": "Topic (optional)",
|
||||
"Visibility": "Visibility",
|
||||
"Public": "Public",
|
||||
"Private": "Private",
|
||||
@@ -135,4 +135,4 @@
|
||||
"NoThreadsYet": "There are no threads yet.",
|
||||
"SummarizeMessages": "Summarize discussion"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Todos los canales",
|
||||
"AllContacts": "Todos los contactos",
|
||||
"NewChannel": "Nuevo canal",
|
||||
"DescriptionOptional": "Descripción (opcional)",
|
||||
"TopicOptional": "Tema (opcional)",
|
||||
"Visibility": "Visibilidad",
|
||||
"Public": "Público",
|
||||
"Private": "Privado",
|
||||
@@ -134,4 +134,4 @@
|
||||
"NoThreadsYet": "No hay hilos todavía.",
|
||||
"SummarizeMessages": "Resumir la discusión"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Tous les canaux",
|
||||
"AllContacts": "Tous les contacts",
|
||||
"NewChannel": "Nouveau canal",
|
||||
"DescriptionOptional": "Description (facultatif)",
|
||||
"TopicOptional": "Sujet (facultatif)",
|
||||
"Visibility": "Visibilité",
|
||||
"Public": "Public",
|
||||
"Private": "Privé",
|
||||
@@ -134,4 +134,4 @@
|
||||
"NoThreadsYet": "Il n'y a pas encore de fils de discussion.",
|
||||
"SummarizeMessages": "Résumer la discussion"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Tutti i canali",
|
||||
"AllContacts": "Tutti i contatti",
|
||||
"NewChannel": "Nuovo canale",
|
||||
"DescriptionOptional": "Descrizione (opzionale)",
|
||||
"TopicOptional": "Topic (opzionale)",
|
||||
"Visibility": "Visibilità",
|
||||
"Public": "Pubblico",
|
||||
"Private": "Privato",
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "すべてのチャンネル",
|
||||
"AllContacts": "すべての連絡先",
|
||||
"NewChannel": "新しいチャンネル",
|
||||
"DescriptionOptional": "説明(任意)",
|
||||
"TopicOptional": "トピック(任意)",
|
||||
"Visibility": "公開設定",
|
||||
"Public": "公開",
|
||||
"Private": "非公開",
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Todos os canais",
|
||||
"AllContacts": "Todos os contatos",
|
||||
"NewChannel": "Novo canal",
|
||||
"DescriptionOptional": "Descrição (opcional)",
|
||||
"TopicOptional": "Tópico (opcional)",
|
||||
"Visibility": "Visibilidade",
|
||||
"Public": "Público",
|
||||
"Private": "Privado",
|
||||
@@ -134,4 +134,4 @@
|
||||
"NoThreadsYet": "Não há conversas ainda.",
|
||||
"SummarizeMessages": "Resumir discussão"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "Все каналы",
|
||||
"AllContacts": "Все контакты",
|
||||
"NewChannel": "Новый канал",
|
||||
"DescriptionOptional": "Описание (необязательно)",
|
||||
"TopicOptional": "Топик (необязательно)",
|
||||
"Visibility": "Видимость",
|
||||
"Public": "Публичный",
|
||||
"Private": "Закрытый",
|
||||
@@ -135,4 +135,4 @@
|
||||
"NoThreadsYet": "Пока нет обсуждений.",
|
||||
"SummarizeMessages": "Подвести итоги обсуждения"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"AllChannels": "所有频道",
|
||||
"AllContacts": "所有联系人",
|
||||
"NewChannel": "新建频道",
|
||||
"DescriptionOptional": "描述(可选)",
|
||||
"TopicOptional": "主题(可选)",
|
||||
"Visibility": "可见性",
|
||||
"Public": "公开",
|
||||
"Private": "私有",
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
let selectedVisibilityId = visibilityOptions[0].id
|
||||
let channelName = ''
|
||||
let description = ''
|
||||
let topic = ''
|
||||
let canSave = true
|
||||
|
||||
$: visibilityIcon = visibilityOptions.find(({ id }) => id === selectedVisibilityId)?.icon ?? visibilityOptions[0].icon
|
||||
@@ -62,7 +62,7 @@
|
||||
private: selectedVisibilityId === 'private',
|
||||
archived: false,
|
||||
members: [myAcc],
|
||||
topic: description,
|
||||
topic,
|
||||
owners: [myAcc]
|
||||
})
|
||||
|
||||
@@ -86,12 +86,12 @@
|
||||
<div class="hulyModal-content__titleGroup" style="padding: 0">
|
||||
<ModernEditbox bind:value={channelName} label={chunter.string.NewChannel} size="large" kind="ghost" />
|
||||
<TextArea
|
||||
placeholder={chunter.string.DescriptionOptional}
|
||||
placeholder={chunter.string.TopicOptional}
|
||||
width="100%"
|
||||
height="6.5rem"
|
||||
margin="var(--spacing-1) var(--spacing-2)"
|
||||
noFocusBorder
|
||||
bind:value={description}
|
||||
bind:value={topic}
|
||||
/>
|
||||
</div>
|
||||
<div class="hulyModal-content__settingsSet">
|
||||
|
||||
@@ -172,7 +172,7 @@ export default plugin(chunterId, {
|
||||
AllChannels: '' as IntlString,
|
||||
AllContacts: '' as IntlString,
|
||||
NewChannel: '' as IntlString,
|
||||
DescriptionOptional: '' as IntlString,
|
||||
TopicOptional: '' as IntlString,
|
||||
Visibility: '' as IntlString,
|
||||
Public: '' as IntlString,
|
||||
Private: '' as IntlString,
|
||||
|
||||
Reference in New Issue
Block a user