Fixes access to settings and a small typo

This commit is contained in:
Matias Pando 2014-10-16 11:25:45 -03:00 committed by Matias Alejo Garcia
commit d461ddd600

View file

@ -2,8 +2,8 @@
//Setting up route
angular
.module('copayApp')
.config(function($routeProvider) {
.module('copayApp')
.config(function($routeProvider) {
$routeProvider
.when('/', {
@ -52,7 +52,7 @@ angular
})
.when('/settings', {
templateUrl: 'views/settings.html',
logged: true
logged: false
})
.when('/warning', {
templateUrl: 'views/warning.html',
@ -66,12 +66,12 @@ angular
templateUrl: 'views/errors/404.html',
title: 'Error'
});
});
});
//Setting HTML5 Location Mode
angular
.module('copayApp')
.config(function($locationProvider, $idleProvider, $keepaliveProvider) {
.module('copayApp')
.config(function($locationProvider, $idleProvider, $keepaliveProvider) {
$locationProvider
.html5Mode(false)
.hashPrefix('!');
@ -80,8 +80,8 @@ angular
$idleProvider.idleDuration(timeout); // in seconds
$idleProvider.warningDuration(40); // in seconds
$keepaliveProvider.interval(30); // in seconds
})
.run(function($rootScope, $location, $idle, gettextCatalog) {
})
.run(function($rootScope, $location, $idle, gettextCatalog) {
gettextCatalog.currentLanguage = config.defaultLanguage;
$idle.watch();
$rootScope.$on('$routeChangeStart', function(event, next, current) {
@ -95,7 +95,7 @@ angular
}
}
});
})
.config(function($compileProvider) {
})
.config(function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|chrome-extension|resource):/);
});
});