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_IMPORT: string
declare const LOC_ACTION_EXPORT: string declare const LOC_ACTION_EXPORT: string
declare const LOC_ACTION_IMPORT_EMOJIS_INFO: 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

@ -228,7 +228,9 @@ export class DynamicTableFormElement extends LivechatElement {
<td class="form-group"> <td class="form-group">
<button type="button" <button type="button"
class="peertube-button-link orange-button dynamic-table-remove-row" class="peertube-button-link orange-button dynamic-table-remove-row"
@click=${() => this._removeRow(rowData._id)}> .title=${ptTr(LOC_ACTION_REMOVE_ENTRY)}
@click=${() => this._removeRow(rowData._id)}
>
${unsafeHTML(RemoveSVG)} ${unsafeHTML(RemoveSVG)}
</button> </button>
</td> </td>
@ -245,7 +247,9 @@ export class DynamicTableFormElement extends LivechatElement {
<td> <td>
<button type="button" <button type="button"
class="peertube-button-link orange-button dynamic-table-add-row" class="peertube-button-link orange-button dynamic-table-add-row"
@click=${this._addRow}> .title=${ptTr(LOC_ACTION_ADD_ENTRY)}
@click=${this._addRow}
>
${unsafeHTML(AddSVG)} ${unsafeHTML(AddSVG)}
</button> </button>
</td> </td>

View File

@ -511,3 +511,6 @@ livechat_emojis_file_desc: |
action_import: Import action_import: Import
action_export: Export action_export: Export
action_import_emojis_info: If imported data are okay, don't forgot to save the form. 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