mirror of https://github.com/BTCPrivate/copay.git
Fixes access to settings and a small typo
This commit is contained in:
parent
43c0eb9cb6
commit
d461ddd600
22
js/routes.js
22
js/routes.js
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
//Setting up route
|
//Setting up route
|
||||||
angular
|
angular
|
||||||
.module('copayApp')
|
.module('copayApp')
|
||||||
.config(function($routeProvider) {
|
.config(function($routeProvider) {
|
||||||
|
|
||||||
$routeProvider
|
$routeProvider
|
||||||
.when('/', {
|
.when('/', {
|
||||||
|
@ -52,7 +52,7 @@ angular
|
||||||
})
|
})
|
||||||
.when('/settings', {
|
.when('/settings', {
|
||||||
templateUrl: 'views/settings.html',
|
templateUrl: 'views/settings.html',
|
||||||
logged: true
|
logged: false
|
||||||
})
|
})
|
||||||
.when('/warning', {
|
.when('/warning', {
|
||||||
templateUrl: 'views/warning.html',
|
templateUrl: 'views/warning.html',
|
||||||
|
@ -66,12 +66,12 @@ angular
|
||||||
templateUrl: 'views/errors/404.html',
|
templateUrl: 'views/errors/404.html',
|
||||||
title: 'Error'
|
title: 'Error'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//Setting HTML5 Location Mode
|
//Setting HTML5 Location Mode
|
||||||
angular
|
angular
|
||||||
.module('copayApp')
|
.module('copayApp')
|
||||||
.config(function($locationProvider, $idleProvider, $keepaliveProvider) {
|
.config(function($locationProvider, $idleProvider, $keepaliveProvider) {
|
||||||
$locationProvider
|
$locationProvider
|
||||||
.html5Mode(false)
|
.html5Mode(false)
|
||||||
.hashPrefix('!');
|
.hashPrefix('!');
|
||||||
|
@ -80,8 +80,8 @@ angular
|
||||||
$idleProvider.idleDuration(timeout); // in seconds
|
$idleProvider.idleDuration(timeout); // in seconds
|
||||||
$idleProvider.warningDuration(40); // in seconds
|
$idleProvider.warningDuration(40); // in seconds
|
||||||
$keepaliveProvider.interval(30); // in seconds
|
$keepaliveProvider.interval(30); // in seconds
|
||||||
})
|
})
|
||||||
.run(function($rootScope, $location, $idle, gettextCatalog) {
|
.run(function($rootScope, $location, $idle, gettextCatalog) {
|
||||||
gettextCatalog.currentLanguage = config.defaultLanguage;
|
gettextCatalog.currentLanguage = config.defaultLanguage;
|
||||||
$idle.watch();
|
$idle.watch();
|
||||||
$rootScope.$on('$routeChangeStart', function(event, next, current) {
|
$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):/);
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|chrome-extension|resource):/);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue