Improve sgFolderTree directive for mobile
parent
61e25184fc
commit
ee1f56ad27
|
@ -34,7 +34,8 @@
|
|||
<sg-folder-tree ng-repeat="folder in account.$mailboxes track by folder.id"
|
||||
sg-root="account"
|
||||
sg-folder="folder"
|
||||
sg-set-folder="setCurrentFolder"><!-- tree --></sg-folder-tree>
|
||||
sg-set-folder="setCurrentFolder"
|
||||
sg-edit="edit"><!-- tree --></sg-folder-tree>
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
|
|
@ -69,7 +69,8 @@
|
|||
scope: {
|
||||
root: '=sgRoot',
|
||||
folder: '=sgFolder',
|
||||
setFolder: '=sgSetFolder'
|
||||
setFolder: '=sgSetFolder',
|
||||
edit: '=sgEdit'
|
||||
},
|
||||
template:
|
||||
'<ion-item option-buttons="buttons" class="item-icon-left item-icon-right"' +
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
$scope.ApplicationBaseURL = ApplicationBaseURL;
|
||||
}])
|
||||
|
||||
.controller('MailboxesCtrl', ['$scope', '$http', '$state', '$ionicActionSheet', 'sgAccount', 'sgMailbox', 'encodeUriFilter', 'stateAccounts', function($scope, $http, $state, $ionicActionSheet, Account, Mailbox, encodeUriFilter, stateAccounts) {
|
||||
.controller('MailboxesCtrl', ['$scope', '$http', '$state', '$ionicActionSheet', '$ionicListDelegate', 'sgAccount', 'sgMailbox', 'encodeUriFilter', 'stateAccounts', function($scope, $http, $state, $ionicActionSheet, $ionicListDelegate, Account, Mailbox, encodeUriFilter, stateAccounts) {
|
||||
$scope.accounts = stateAccounts
|
||||
|
||||
$scope.setCurrentFolder = function(account, folder) {
|
||||
|
|
Loading…
Reference in New Issue