Task lists WIP:

* info button
This commit is contained in:
John Livingston 2024-05-12 16:21:07 +02:00
parent 9ef71c07dd
commit 2eaeb293dd
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
4 changed files with 15 additions and 2 deletions

View File

@ -7,6 +7,7 @@
padding: var(--occupants-padding);
.livechat-converse-muc-app-header {
column-gap: 0.25em;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
@ -16,8 +17,9 @@
width: 100%;
h5 {
display: inline;
color: var(--groupchats-header-color-dark);
display: inline;
flex-grow: 2;
}
.livechat-converse-muc-app-close {

View File

@ -22,9 +22,16 @@ export function tplMUCTaskApp (el, mucModel) {
// eslint-disable-next-line no-undef
const i18nTasks = __(LOC_tasks)
// eslint-disable-next-line no-undef
const i18nHint = __(LOC_task_app_info)
return html`
<div class="livechat-converse-muc-app-header">
<h5>${i18nTasks}</h5>
<converse-icon
class="fa fa-info-circle"
size="1em"
title="${i18nHint}"
></converse-icon>
<button class="livechat-converse-muc-app-close" @click=${el.toggleApp} title="${__('Close')}">
<converse-icon class="fa fa-times" size="1em"></converse-icon>
</button>

View File

@ -26,7 +26,8 @@ const locKeys = [
'task_name',
'task_description',
'task_delete',
'task_delete_confirm'
'task_delete_confirm',
'task_app_info'
]
module.exports = locKeys

View File

@ -446,3 +446,6 @@ task_name: 'Task name'
task_description: 'Description'
task_delete: 'Delete task'
task_delete_confirm: 'Are you sure you want to delete this task?'
task_app_info: |
You can create tasks and task lists, which are shared between all room's admins.
See the livechat streamers documentation for more information.