1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 00:42:20 -05:00

[dev/WO-783] Show Starred instead of Flagged in mail-list and dropdown

This commit is contained in:
Felix Hammerl 2014-12-04 10:50:57 +01:00
parent 170b01d5f1
commit 4b9412413e
3 changed files with 8 additions and 4 deletions

View File

@ -29,7 +29,8 @@
<li ng-repeat="folder in account.folders"> <li ng-repeat="folder in account.folders">
<button wo-touch="state.read.open ? moveMessage(state.mailList.selected, folder) : moveCheckedMessages(folder)"> <button wo-touch="state.read.open ? moveMessage(state.mailList.selected, folder) : moveCheckedMessages(folder)">
<svg><use xlink:href="#icon-folder" /></svg> <svg><use xlink:href="#icon-folder" /></svg>
{{folder.wellknown ? folder.type : folder.name}} <span ng-show="folder.wellknown">{{folder.type === 'Flagged' ? 'Starred' : folder.type}}</span>
<span ng-show="!folder.wellknown">{{folder.name}}</span>
</button> </button>
</li> </li>
</ul><!--/dropdown--> </ul><!--/dropdown-->

View File

@ -5,7 +5,8 @@
<button class="btn-navicon"> <button class="btn-navicon">
<svg><use xlink:href="#icon-navicon" /><title>Toggle Navigation</title></svg> <svg><use xlink:href="#icon-navicon" /><title>Toggle Navigation</title></svg>
</button> </button>
<h2>{{state.nav.currentFolder.wellknown ? state.nav.currentFolder.type : state.nav.currentFolder.name}}</h2> <h2 ng-show="state.nav.currentFolder.wellknown">{{state.nav.currentFolder.type === 'Flagged' ? 'Starred' : state.nav.currentFolder.type}}</h2>
<h2 ng-show="!state.nav.currentFolder.wellknown">{{state.nav.currentFolder.name}}</h2>
</div> </div>
<button class="btn-icon-light" title="New mail" wo-touch="state.writer.write(); $event.stopPropagation()"> <button class="btn-icon-light" title="New mail" wo-touch="state.writer.write(); $event.stopPropagation()">

View File

@ -8,7 +8,8 @@
<div class="toolbar"> <div class="toolbar">
<a class="toolbar__label" href="javascript:;" wo-touch="state.read.toggle(false)"> <a class="toolbar__label" href="javascript:;" wo-touch="state.read.toggle(false)">
<svg><use xlink:href="#icon-back" /><title>Back</title></svg> <svg><use xlink:href="#icon-back" /><title>Back</title></svg>
{{state.nav.currentFolder.wellknown ? state.nav.currentFolder.type : state.nav.currentFolder.name}} <span ng-show="state.nav.currentFolder.wellknown">{{state.nav.currentFolder.type === 'Flagged' ? 'Starred' : state.nav.currentFolder.type}}</span>
<span ng-show="!state.nav.currentFolder.wellknown">{{state.nav.currentFolder.name}}</span>
</a> </a>
</div> </div>
</div><!--/read__folder-toolbar--> </div><!--/read__folder-toolbar-->
@ -174,7 +175,8 @@
<li ng-repeat="folder in account.folders"> <li ng-repeat="folder in account.folders">
<button wo-touch="moveMessage(state.mailList.selected, folder)"> <button wo-touch="moveMessage(state.mailList.selected, folder)">
<svg><use xlink:href="#icon-folder" /></svg> <svg><use xlink:href="#icon-folder" /></svg>
{{folder.wellknown ? folder.type : folder.name}} <span ng-show="folder.wellknown">{{folder.type === 'Flagged' ? 'Starred' : folder.type}}</span>
<span ng-show="!folder.wellknown">{{folder.name}}</span>
</button> </button>
</li> </li>
</ul><!--/dropdown--> </ul><!--/dropdown-->