diff --git a/src/app/pages/mail/MailCtrl.js b/src/app/pages/mail/MailCtrl.js index d19c908..8190b73 100644 --- a/src/app/pages/mail/MailCtrl.js +++ b/src/app/pages/mail/MailCtrl.js @@ -9,7 +9,7 @@ .controller('MailCtrl', MailCtrl); /** @ngInject */ - function MailCtrl($scope, $location, $sce) { + function MailCtrl($scope, $location, $sce, composeModal) { $scope.showMail = false; @@ -315,6 +315,13 @@ $scope.tab = findTabByLabel(0); $scope.currentMessages = $scope.tabs[$scope.tab].filter($scope.messages); $scope.mail = $scope.currentMessages[findMessageById(0)]; + + $scope.showCompose = function(){ + composeModal.open({ + subject : "hello world" + }) + } + } })(); diff --git a/src/app/pages/mail/blurEmail.html b/src/app/pages/mail/blurEmail.html index 5621967..e136904 100644 --- a/src/app/pages/mail/blurEmail.html +++ b/src/app/pages/mail/blurEmail.html @@ -2,7 +2,7 @@