1
0
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:
Tankred Hase 2013-10-02 13:11:18 +02:00
parent abaeaec54c
commit 093f9a58e8
2 changed files with 26 additions and 23 deletions

View File

@ -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'
}]
}
};

View File

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