add development feature flag
This commit is contained in:
parent
0a91883096
commit
365216afc9
2 changed files with 13 additions and 6 deletions
|
|
@ -84,6 +84,9 @@ var defaultConfig = {
|
||||||
// for copay.io:
|
// for copay.io:
|
||||||
// clientId: '1036948132229-biqm3b8sirik9lt5rtvjo9kjjpotn4ac.apps.googleusercontent.com',
|
// clientId: '1036948132229-biqm3b8sirik9lt5rtvjo9kjjpotn4ac.apps.googleusercontent.com',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
developmentFeatures: true
|
||||||
|
|
||||||
};
|
};
|
||||||
if (typeof module !== 'undefined')
|
if (typeof module !== 'undefined')
|
||||||
module.exports = defaultConfig;
|
module.exports = defaultConfig;
|
||||||
|
|
|
||||||
16
js/routes.js
16
js/routes.js
|
|
@ -69,15 +69,19 @@ angular
|
||||||
.when('/manage', {
|
.when('/manage', {
|
||||||
templateUrl: 'views/manage.html',
|
templateUrl: 'views/manage.html',
|
||||||
logged: true
|
logged: true
|
||||||
})
|
});
|
||||||
.when('/devLogin/:mail/:password', {
|
|
||||||
|
if (config.developmentFeatures) {
|
||||||
|
$routeProvider.when('/devLogin/:mail/:password', {
|
||||||
templateUrl: 'views/devLogin.html',
|
templateUrl: 'views/devLogin.html',
|
||||||
logged: false
|
logged: false
|
||||||
})
|
|
||||||
.otherwise({
|
|
||||||
templateUrl: 'views/errors/404.html',
|
|
||||||
title: 'Error'
|
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$routeProvider.otherwise({
|
||||||
|
templateUrl: 'views/errors/404.html',
|
||||||
|
title: 'Error'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//Setting HTML5 Location Mode
|
//Setting HTML5 Location Mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue