Gestion des imports dans les profils
This commit is contained in:
@ -4,7 +4,7 @@ var LOAD_PROFILE = exports.LOAD_PROFILE = 'LOAD_PROFILE';
|
||||
var LOAD_PROFILE_SUCCESS = exports.LOAD_PROFILE_SUCCESS = 'LOAD_PROFILE_SUCCESS';
|
||||
var LOAD_PROFILE_FAILED = exports.LOAD_PROFILE_FAILED = 'LOAD_PROFILE_FAILED';
|
||||
|
||||
exports.loadProfile = function(profilePath) {
|
||||
exports.loadProfile = function(profilePath, withImports) {
|
||||
|
||||
return function(dispatch, getState) {
|
||||
|
||||
@ -12,7 +12,7 @@ exports.loadProfile = function(profilePath) {
|
||||
|
||||
Util.Logger.info('Loading profile "%s"', profilePath);
|
||||
|
||||
return Util.System.loadJSON(profilePath)
|
||||
return Util.Profile.load(profilePath, withImports)
|
||||
.then(function(profile) {
|
||||
Util.Logger.info('Profile loaded.');
|
||||
dispatch({ type: LOAD_PROFILE_SUCCESS, profile: profile });
|
||||
|
Reference in New Issue
Block a user