|
@@ -574,7 +574,7 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM
|
|
for (var prop in configuration.properties) {
|
|
for (var prop in configuration.properties) {
|
|
value += prop + '=' + configuration.properties[prop] + '\n';
|
|
value += prop + '=' + configuration.properties[prop] + '\n';
|
|
}
|
|
}
|
|
- serviceVersionMap[configuration.type] = {
|
|
|
|
|
|
+ serviceVersionMap[configuration.type + '-' + configuration.type] = {
|
|
name: configuration.type,
|
|
name: configuration.type,
|
|
value: value,
|
|
value: value,
|
|
type: configuration.type,
|
|
type: configuration.type,
|
|
@@ -583,7 +583,7 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM
|
|
};
|
|
};
|
|
} else {
|
|
} else {
|
|
for (var prop in configuration.properties) {
|
|
for (var prop in configuration.properties) {
|
|
- serviceVersionMap[prop] = {
|
|
|
|
|
|
+ serviceVersionMap[prop + '-' + configuration.type] = {
|
|
name: prop,
|
|
name: prop,
|
|
value: configuration.properties[prop],
|
|
value: configuration.properties[prop],
|
|
type: configuration.type,
|
|
type: configuration.type,
|
|
@@ -597,15 +597,15 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ServerValidatorM
|
|
}
|
|
}
|
|
if (configuration.properties_attributes && configuration.properties_attributes.final) {
|
|
if (configuration.properties_attributes && configuration.properties_attributes.final) {
|
|
for (var final in configuration.properties_attributes.final) {
|
|
for (var final in configuration.properties_attributes.final) {
|
|
- serviceVersionMap[final].isFinal = (configuration.properties_attributes.final[final] === 'true');
|
|
|
|
|
|
+ serviceVersionMap[final + '-' + configuration.type].isFinal = (configuration.properties_attributes.final[final] === 'true');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, this);
|
|
}, this);
|
|
|
|
|
|
allConfigs.forEach(function (serviceConfig) {
|
|
allConfigs.forEach(function (serviceConfig) {
|
|
- var compareConfig = serviceVersionMap[serviceConfig.name];
|
|
|
|
|
|
+ // map the property in the compare version to compare with current serviceConfig
|
|
|
|
+ var compareConfig = serviceVersionMap[serviceConfig.name + '-' + App.config.getConfigTagFromFileName(serviceConfig.filename)];
|
|
var compareObject = $.extend(true, {isComparison: true}, serviceConfig);
|
|
var compareObject = $.extend(true, {isComparison: true}, serviceConfig);
|
|
-
|
|
|
|
compareObject.serviceVersion = compareServiceVersion;
|
|
compareObject.serviceVersion = compareServiceVersion;
|
|
compareObject.isEditable = false;
|
|
compareObject.isEditable = false;
|
|
|
|
|