Dynamic tables: title on add and remove buttons.
This commit is contained in:
parent
7781cc805d
commit
d0252383cd
2
client/@types/global.d.ts
vendored
2
client/@types/global.d.ts
vendored
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user