mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
Fix missing icons in nav due to chrome bug with <use> and angular directives
This commit is contained in:
parent
b5e305534e
commit
5ac7955721
@ -8,13 +8,23 @@
|
|||||||
<li ng-repeat="folder in account.folders" ng-if="folder.wellknown" ng-hide="folder.type === 'Outbox' && folder.count < 1"
|
<li ng-repeat="folder in account.folders" ng-if="folder.wellknown" ng-hide="folder.type === 'Outbox' && folder.count < 1"
|
||||||
class="nav__folder" ng-class="{'nav__folder--open': state.nav.currentFolder === folder}">
|
class="nav__folder" ng-class="{'nav__folder--open': state.nav.currentFolder === folder}">
|
||||||
<a href="#" wo-touch="$event.preventDefault(); openFolder(folder)">
|
<a href="#" wo-touch="$event.preventDefault(); openFolder(folder)">
|
||||||
<svg role="presentation">
|
<svg ng-if="folder.type === 'Inbox'" role="presentation">
|
||||||
<use ng-if="folder.type === 'Inbox'" xlink:href="#icon-inbox" />
|
<use xlink:href="#icon-inbox" />
|
||||||
<use ng-if="folder.type === 'Sent'" xlink:href="#icon-sent" />
|
</svg>
|
||||||
<use ng-if="folder.type === 'Outbox'" xlink:href="#icon-outbox" />
|
<svg ng-if="folder.type === 'Sent'" role="presentation">
|
||||||
<use ng-if="folder.type === 'Drafts'" xlink:href="#icon-draft" />
|
<use xlink:href="#icon-sent" />
|
||||||
<use ng-if="folder.type === 'Trash'" xlink:href="#icon-delete" />
|
</svg>
|
||||||
<use ng-if="folder.type === 'Flagged'" xlink:href="#icon-star" />
|
<svg ng-if="folder.type === 'Outbox'" role="presentation">
|
||||||
|
<use xlink:href="#icon-outbox" />
|
||||||
|
</svg>
|
||||||
|
<svg ng-if="folder.type === 'Drafts'" role="presentation">
|
||||||
|
<use xlink:href="#icon-draft" />
|
||||||
|
</svg>
|
||||||
|
<svg ng-if="folder.type === 'Trash'" role="presentation">
|
||||||
|
<use xlink:href="#icon-delete" />
|
||||||
|
</svg>
|
||||||
|
<svg ng-if="folder.type === 'Flagged'" role="presentation">
|
||||||
|
<use xlink:href="#icon-star" />
|
||||||
</svg>
|
</svg>
|
||||||
{{folder.type}}
|
{{folder.type}}
|
||||||
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
|
<span ng-show="folder.count > 0" class="nav__counter">{{folder.count}}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user