mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
Hide undeleteCommand command when deleted messages are hidden #1657
This commit is contained in:
parent
b70860c903
commit
3ff2c4fb82
2 changed files with 4 additions and 2 deletions
|
|
@ -111,6 +111,8 @@ export class MailMessageList extends AbstractViewRight {
|
||||||
|
|
||||||
this.userUsageProc = FolderUserStore.quotaPercentage;
|
this.userUsageProc = FolderUserStore.quotaPercentage;
|
||||||
|
|
||||||
|
this.hideDeleted = SettingsUserStore.hideDeleted;
|
||||||
|
|
||||||
addObservablesTo(this, {
|
addObservablesTo(this, {
|
||||||
focusSearch: false
|
focusSearch: false
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
</a>
|
</a>
|
||||||
<a class="btn fontastic" data-bind="command: deleteCommand" data-i18n="[title]GLOBAL/DELETE">🗑</a>
|
<a class="btn fontastic" data-bind="command: deleteCommand" data-i18n="[title]GLOBAL/DELETE">🗑</a>
|
||||||
<!--
|
<!--
|
||||||
<a class="btn fontastic" data-bind="command: undeleteCommand" data-i18n="[title]GLOBAL/UNDELETE" style="transform:rotate(-180deg)">🗑</a>
|
<a class="btn fontastic" data-bind="command: undeleteCommand, hidden: hideDeleted" data-i18n="[title]GLOBAL/UNDELETE" style="transform:rotate(-180deg)">🗑</a>
|
||||||
-->
|
-->
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group dropdown" data-bind="registerBootstrapDropdown: true">
|
<div class="btn-group dropdown" data-bind="registerBootstrapDropdown: true">
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
<li role="presentation" data-bind="command: deleteCommand">
|
<li role="presentation" data-bind="command: deleteCommand">
|
||||||
<a href="#" tabindex="-1" data-icon="🗑" data-i18n="GLOBAL/DELETE"></a>
|
<a href="#" tabindex="-1" data-icon="🗑" data-i18n="GLOBAL/DELETE"></a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation" data-bind="command: undeleteCommand">
|
<li role="presentation" data-bind="command: undeleteCommand, hidden: hideDeleted">
|
||||||
<a href="#" tabindex="-1" data-icon="🗑" data-i18n="GLOBAL/UNDELETE" class="rotate"></a>
|
<a href="#" tabindex="-1" data-icon="🗑" data-i18n="GLOBAL/UNDELETE" class="rotate"></a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation" data-bind="visible: allowDangerousActions, command: deleteWithoutMoveCommand">
|
<li role="presentation" data-bind="visible: allowDangerousActions, command: deleteWithoutMoveCommand">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue