diff --git a/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js b/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js index d2eac6da..204c5c01 100755 --- a/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js +++ b/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/degrade.js @@ -47,7 +47,7 @@ app.controller('DegradeCtl', ['$scope', '$stateParams', 'DegradeService', 'ngDia $scope.editRule = function (rule) { $scope.currentRule = angular.copy(rule); $scope.degradeRuleDialog = { - title: '编辑降级规则', + title: '编辑熔断规则', type: 'edit', confirmBtnText: '保存' }; @@ -71,7 +71,7 @@ app.controller('DegradeCtl', ['$scope', '$stateParams', 'DegradeService', 'ngDia statIntervalMs: 1000, }; $scope.degradeRuleDialog = { - title: '新增降级规则', + title: '新增熔断规则', type: 'add', confirmBtnText: '新增' }; @@ -111,11 +111,11 @@ app.controller('DegradeCtl', ['$scope', '$stateParams', 'DegradeService', 'ngDia $scope.deleteRule = function (rule) { $scope.currentRule = rule; $scope.confirmDialog = { - title: '删除降级规则', + title: '删除熔断规则', type: 'delete_rule', - attentionTitle: '请确认是否删除如下降级规则', + attentionTitle: '请确认是否删除如下熔断规则', attention: '资源名: ' + rule.resource + - ', 降级模式: ' + parseDegradeMode(rule.grade) + ', 阈值: ' + rule.count, + ', 熔断策略: ' + parseDegradeMode(rule.grade) + ', 阈值: ' + rule.count, confirmBtnText: '删除', }; confirmDialog = ngDialog.open({ @@ -173,7 +173,7 @@ app.controller('DegradeCtl', ['$scope', '$stateParams', 'DegradeService', 'ngDia function queryAppMachines() { MachineService.getAppMachines($scope.app).success( function (data) { - if (data.code == 0) { + if (data.code === 0) { // $scope.machines = data.data; if (data.data) { $scope.machines = []; diff --git a/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/identity.js b/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/identity.js index 2a14eb1e..cc583428 100755 --- a/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/identity.js +++ b/sentinel-dashboard/src/main/webapp/resources/app/scripts/controllers/identity.js @@ -140,7 +140,7 @@ app.controller('IdentityCtl', ['$scope', '$stateParams', 'IdentityService', }; degradeRuleDialogScope.degradeRuleDialog = { - title: '新增降级规则', + title: '新增熔断规则', type: 'add', confirmBtnText: '新增', saveAndContinueBtnText: '新增并继续添加' diff --git a/sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html b/sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html index a7212629..40f68d3a 100755 --- a/sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html +++ b/sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html @@ -60,7 +60,7 @@