Improve sgFolderTree directive for mobile

pull/91/head
Francis Lachapelle 2014-12-02 09:45:01 -05:00
parent 61e25184fc
commit ee1f56ad27
3 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -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"' +

View File

@ -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) {