Use icon instead of "Add" in structural entity select.

This commit is contained in:
Jan Böhmer 2023-01-30 23:58:53 +01:00
parent b668218154
commit c71646de3f

View file

@ -53,7 +53,7 @@ export default class extends Controller {
item: this.renderItem.bind(this), item: this.renderItem.bind(this),
option: this.renderOption.bind(this), option: this.renderOption.bind(this),
option_create: function(data, escape) { option_create: function(data, escape) {
return '<div class="create">Add <strong>' + escape(data.input) + '</strong>&hellip;&nbsp;' + return '<div class="create"><i class="fa-solid fa-plus fa-fw"></i>&nbsp;<strong>' + escape(data.input) + '</strong>&hellip;&nbsp;' +
'<small class="text-muted float-end">(' + addHint +')</small>' + '<small class="text-muted float-end">(' + addHint +')</small>' +
'</div>'; '</div>';
}, },