fix(mail(css)): add explicit expanded/collapsed mailbox status

This commit is contained in:
Francis Lachapelle
2020-07-02 17:24:51 -04:00
parent 6ab3633a61
commit 2545caf2e5
5 changed files with 37 additions and 26 deletions
@@ -203,7 +203,7 @@
}
else {
this.$isSpecial = false;
this.$icon = 'folder_open';
this.$icon = 'folder';
}
}
this.$isNoInferiors = this.isNoInferiors();
@@ -25,11 +25,12 @@
' ng-model="$ctrl.mailbox.$expanded"',
' ng-disabled="$ctrl.mailbox.children.length == 0"',
' ng-change="$ctrl.mailbox.$account.$flattenMailboxes({ reload: true, saveState: true })">',
' <md-icon>{{$ctrl.mailbox.$icon}}</md-icon></md-checkbox>',
' </md-checkbox>',
' </div>',
' <p class="sg-item-name"',
' ng-click="$ctrl.selectFolder($event)"',
' ng-dblclick="$ctrl.editFolder($event)">',
' <md-icon ng-class="{ \'sg-opacity-70\': $ctrl.mailbox.isNoSelect() }">{{$ctrl.mailbox.$icon}}</md-icon>',
' <span ng-bind="$ctrl.mailbox.$displayName"></span>',
' <span class="sg-counter-badge ng-hide"',
' ng-show="$ctrl.mailbox.unseenCount"',
@@ -111,7 +112,7 @@
this.inputElement.value = this.mailbox.name;
this.clickableElement.classList.add('ng-hide');
this.inputContainer.classList.remove('ng-hide');
if ($event.srcEvent.type == 'touchend') {
if ($event.srcEvent && $event.srcEvent.type == 'touchend') {
$timeout(function() {
$ctrl.inputElement.select();
$ctrl.inputElement.focus();