mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 19:02:20 -05:00
move gmail folders to app-config
This commit is contained in:
parent
abaeaec54c
commit
093f9a58e8
@ -26,7 +26,28 @@ define([], function() {
|
||||
secure: true,
|
||||
port: 465,
|
||||
host: 'smtp.gmail.com'
|
||||
}
|
||||
},
|
||||
folders: [{
|
||||
type: 'Inbox',
|
||||
count: undefined,
|
||||
path: 'INBOX'
|
||||
}, {
|
||||
type: 'Sent',
|
||||
count: undefined,
|
||||
path: '[Gmail]/Gesendet'
|
||||
}, {
|
||||
type: 'Outbox',
|
||||
count: undefined,
|
||||
path: 'OUTBOX'
|
||||
}, {
|
||||
type: 'Drafts',
|
||||
count: undefined,
|
||||
path: '[Gmail]/Entw&APw-rfe'
|
||||
}, {
|
||||
type: 'Trash',
|
||||
count: undefined,
|
||||
path: '[Gmail]/Papierkorb'
|
||||
}]
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1,29 +1,11 @@
|
||||
define(function() {
|
||||
define(function(require) {
|
||||
'use strict';
|
||||
|
||||
var folders = require('js/app-config').config.gmail.folders;
|
||||
|
||||
var NavigationCtrl = function($scope) {
|
||||
$scope.navOpen = false;
|
||||
$scope.folders = [{
|
||||
type: 'Inbox',
|
||||
count: undefined,
|
||||
path: 'INBOX'
|
||||
}, {
|
||||
type: 'Sent',
|
||||
count: undefined,
|
||||
path: '[Gmail]/Gesendet'
|
||||
}, {
|
||||
type: 'Outbox',
|
||||
count: undefined,
|
||||
path: 'OUTBOX'
|
||||
}, {
|
||||
type: 'Drafts',
|
||||
count: undefined,
|
||||
path: '[Gmail]/Entw&APw-rfe'
|
||||
}, {
|
||||
type: 'Trash',
|
||||
count: undefined,
|
||||
path: '[Gmail]/Papierkorb'
|
||||
}];
|
||||
$scope.folders = folders;
|
||||
|
||||
$scope.openNav = function() {
|
||||
$scope.navOpen = true;
|
||||
|
Loading…
Reference in New Issue
Block a user