mirror of
https://github.com/moparisthebest/mail
synced 2024-11-25 10:22:18 -05:00
integrate imap client
This commit is contained in:
parent
4912e35762
commit
5f4c923a09
@ -29,7 +29,7 @@ require([
|
||||
controller: NavigationCtrl
|
||||
});
|
||||
$routeProvider.otherwise({
|
||||
redirectTo: '/desktop'
|
||||
redirectTo: '/login'
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -4,7 +4,7 @@ define(function(require) {
|
||||
var appController = require('js/app-controller');
|
||||
|
||||
var LoginCtrl = function($scope, $location) {
|
||||
var nextPath = '/folders/INBOX';
|
||||
var nextPath = '/desktop';
|
||||
|
||||
if (window.chrome && chrome.identity) {
|
||||
// start the main app controller
|
||||
|
@ -7,7 +7,7 @@ define(function(require) {
|
||||
emailDao;
|
||||
|
||||
var MailListCtrl = function($scope, $routeParams) {
|
||||
$scope.folder = $routeParams.folder;
|
||||
$scope.folder = $routeParams.folder || 'INBOX';
|
||||
$scope.messageId = $routeParams.messageId;
|
||||
emailDao = appController._emailDao;
|
||||
|
||||
@ -18,7 +18,7 @@ define(function(require) {
|
||||
$scope.$parent.selected = $scope.selected;
|
||||
};
|
||||
|
||||
if (false && window.chrome && chrome.identity) {
|
||||
if (window.chrome && chrome.identity) {
|
||||
fetchList($scope.folder, function(emails) {
|
||||
$scope.emails = emails;
|
||||
$scope.select($scope.emails[0]);
|
||||
|
@ -20,13 +20,13 @@ define(function() {
|
||||
chrome.app.window.create(url, {
|
||||
'bounds': {
|
||||
'width': 720,
|
||||
'height': 680
|
||||
'height': 640
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
window.open(url, 'Compose Message', 'toolbar=no,width=720,height=680,left=500,top=200,status=no,scrollbars=no,resize=no');
|
||||
window.open(url, 'Compose Message', 'toolbar=no,width=720,height=640,left=500,top=200,status=no,scrollbars=no,resize=no');
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user