Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
move gmail folders to app-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankred Hase committed Oct 2, 2013
1 parent abaeaec commit 093f9a5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
23 changes: 22 additions & 1 deletion src/js/app-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}]
}
};

Expand Down
26 changes: 4 additions & 22 deletions src/js/controller/navigation.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 093f9a5

Please sign in to comment.