Use CSS instead of $index #1797

This commit is contained in:
the-djmaze 2024-10-10 00:54:19 +02:00
parent e345550c7f
commit 82ab4c4c6d
2 changed files with 5 additions and 2 deletions

View file

@ -45,4 +45,8 @@
content: ')';
}
.identities-list tr + tr .identity-default {
display: none;
}
}

View file

@ -58,8 +58,7 @@
</td>
<td class="e-action">
<span class="identity-name" data-bind="text: formattedName()"></span>
&nbsp;&nbsp;
<span class="identity-default" data-bind="visible: !$context.$index()" data-i18n="GLOBAL/DEFAULT"></span>
<span class="identity-default" data-i18n="GLOBAL/DEFAULT"></span>
</td>
<td>
<a class="btn btn-small btn-danger button-confirm-delete" data-bind="visible: id, css: {'delete-access': askDelete}, click: function(oIdentity) { $root.deleteIdentity(oIdentity); }"