Skip to content

Commit

Permalink
fix button value and diff code (#4981)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywy-github authored Sep 22, 2023
1 parent 57cca96 commit 1deb136
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apollo-portal/src/main/resources/static/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
"Component.Publish.AllPublishTips": "(Full release configurations are applied to all instances)",
"Component.Publish.ToSeeChange": "View changes",
"Component.Publish.CompareWithMasterValue": "Compare with master",
"Component.Publish.CompareWithPublishedValue": "Compare with grayscale",
"Component.Publish.CompareWithPublishedValue": "Compare with published",
"Component.Publish.PublishedValue": "Released values",
"Component.Publish.Changes": "Changes",
"Component.Publish.Key": "Key",
Expand Down
2 changes: 1 addition & 1 deletion apollo-portal/src/main/resources/static/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
"Component.Publish.AllPublishTips": "(全量发布的配置会作用于全部的实例)",
"Component.Publish.ToSeeChange": "查看变更",
"Component.Publish.CompareWithMasterValue": "与主版本对比",
"Component.Publish.CompareWithPublishedValue": "与灰度版本对比",
"Component.Publish.CompareWithPublishedValue": "与已发布对比",
"Component.Publish.PublishedValue": "待发布的值",
"Component.Publish.Changes": "Changes",
"Component.Publish.Key": "Key",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ directive_module.directive('apollodiff',
var newStr = scope.newStr == undefined ? '' : scope.newStr;

var oldStrRes = oldStr.replace(/\r/g, "");
var diff = JsDiff.diffLines(oldStrRes, newStr),
var newStrRes = newStr.replace(/\r/g, "");
var diff = JsDiff.diffLines(oldStrRes, newStrRes),
fragment = document.createDocumentFragment();

diff.forEach(function (part) {
Expand Down

0 comments on commit 1deb136

Please sign in to comment.