Dynamic tables: title on add and remove buttons.

This commit is contained in:
John Livingston 2024-06-11 12:32:36 +02:00
parent 7781cc805d
commit d0252383cd
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
3 changed files with 13 additions and 4 deletions

View File

@ -104,3 +104,5 @@ declare const LOC_LIVECHAT_EMOJIS_FILE_DESC: string
declare const LOC_ACTION_IMPORT: string
declare const LOC_ACTION_EXPORT: string
declare const LOC_ACTION_IMPORT_EMOJIS_INFO: string
declare const LOC_ACTION_ADD_ENTRY: string
declare const LOC_ACTION_REMOVE_ENTRY: string

View File

@ -227,8 +227,10 @@ export class DynamicTableFormElement extends LivechatElement {
rowData._originalIndex))}
<td class="form-group">
<button type="button"
class="peertube-button-link orange-button dynamic-table-remove-row"
@click=${() => this._removeRow(rowData._id)}>
class="peertube-button-link orange-button dynamic-table-remove-row"
.title=${ptTr(LOC_ACTION_REMOVE_ENTRY)}
@click=${() => this._removeRow(rowData._id)}
>
${unsafeHTML(RemoveSVG)}
</button>
</td>
@ -244,8 +246,10 @@ export class DynamicTableFormElement extends LivechatElement {
${Object.values(this.header).map(() => html`<td></td>`)}
<td>
<button type="button"
class="peertube-button-link orange-button dynamic-table-add-row"
@click=${this._addRow}>
class="peertube-button-link orange-button dynamic-table-add-row"
.title=${ptTr(LOC_ACTION_ADD_ENTRY)}
@click=${this._addRow}
>
${unsafeHTML(AddSVG)}
</button>
</td>

View File

@ -511,3 +511,6 @@ livechat_emojis_file_desc: |
action_import: Import
action_export: Export
action_import_emojis_info: If imported data are okay, don't forgot to save the form.
action_add_entry: Add an entry
action_remove_entry: Remove this entry