Desktop: tweak left-hand filters (#3727)

* correct issue of "allVaults" string literal being used
* make "(Organisation is disabled)" part of the `appA11yTitle`
* add folder name to the edit folder button's `appA11yTitle`

Co-authored-by: Daniel James Smith <djsmith@web.de>
This commit is contained in:
Patrick H. Lauke 2022-12-01 21:13:00 +00:00 committed by GitHub
parent 7b55096edf
commit 844d0d333d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View File

@ -63,7 +63,7 @@
class="edit-button"
*ngIf="f.node.id"
(click)="editFolder(f.node)"
appA11yTitle="{{ 'editFolder' | i18n }}"
appA11yTitle="{{ 'editFolder' | i18n }}: {{ f.node.name }}"
>
<i class="bwi bwi-pencil bwi-fw" aria-hidden="true"></i>
</button>

View File

@ -24,7 +24,7 @@
class="filter-button"
(click)="clearFilter()"
[attr.aria-pressed]="!hasActiveFilter"
appA11yTitle="{{ 'vault' | i18n }}: {{ organizationGrouping.name }}"
appA11yTitle="{{ 'vault' | i18n }}: {{ organizationGrouping.name | i18n }}"
>
{{ organizationGrouping.name | i18n }}
</button>
@ -73,7 +73,7 @@
class="filter-button"
(click)="clearFilter()"
[attr.aria-pressed]="!hasActiveFilter"
appA11yTitle="{{ 'vault' | i18n }}: {{ organizationGrouping.name }}"
appA11yTitle="{{ 'vault' | i18n }}: {{ organizationGrouping.name | i18n }}"
>
{{ organizationGrouping.name | i18n }}
</button>
@ -102,17 +102,18 @@
<button
class="filter-button"
(click)="applyOrganizationFilter(organization)"
appA11yTitle="{{ 'vault' | i18n }}: {{ organization.name }}"
appA11yTitle="{{ 'vault' | i18n }}: {{ organization.name }} {{
organization.enabled ? '' : '(' + ('organizationIsDisabled' | i18n) + ')'
}}"
[attr.aria-pressed]="activeFilter.selectedOrganizationId === organization.id"
>
<i class="bwi bwi-fw bwi-business" aria-hidden="true"></i>
&nbsp;{{ organization.name }}
</button>
<span class="ml-auto">
<span *ngIf="!organization.enabled" class="ml-auto">
<i
*ngIf="!organization.enabled"
class="bwi bwi-fw bwi-exclamation-triangle text-danger mr-auto"
appA11yTitle="{{ 'organizationIsDisabled' | i18n }}"
aria-hidden="true"
></i>
</span>
</span>