Refactoring: moving the draggable code in a common class.

This commit is contained in:
John Livingston
2024-07-30 12:54:05 +02:00
parent eb76e7ebb9
commit fbc9a39485
8 changed files with 260 additions and 181 deletions

View File

@ -11,7 +11,7 @@ export function tplMucNote (el, note) {
return !el.edit
? html`
<div draggable="true" class="note-line">
<div draggable="true" class="note-line draggables-line">
<div class="note-description">${note.get('description') ?? ''}</div>
<button class="note-action" title="${__('Edit')}"
@click=${el.toggleEdit}
@ -25,7 +25,7 @@ export function tplMucNote (el, note) {
</button>
</div>`
: html`
<div class="note-line">
<div class="note-line draggables-line">
<form class="converse-form" @submit=${el.saveNote}>
${_tplNoteForm(note)}
<fieldset class="form-group">