mirror of
https://github.com/apache/rocketmq-dashboard.git
synced 2026-05-30 14:53:31 +08:00
Enable check config for System topic
This commit is contained in:
@@ -265,7 +265,7 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openUpdateDialog = function (topic) {
|
$scope.openUpdateDialog = function (topic, sysFlag) {
|
||||||
$http({
|
$http({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: "topic/examineTopicConfig.query",
|
url: "topic/examineTopicConfig.query",
|
||||||
@@ -274,16 +274,15 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio
|
|||||||
}
|
}
|
||||||
}).success(function (resp) {
|
}).success(function (resp) {
|
||||||
if(resp.status ==0){
|
if(resp.status ==0){
|
||||||
$scope.openCreateOrUpdateDialog(resp.data);
|
$scope.openCreateOrUpdateDialog(resp.data, sysFlag);
|
||||||
}else {
|
}else {
|
||||||
Notification.error({message: resp.errMsg, delay: 2000});
|
Notification.error({message: resp.errMsg, delay: 2000});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openCreateOrUpdateDialog = function (request) {
|
$scope.openCreateOrUpdateDialog = function (request, sysFlag) {
|
||||||
var bIsUpdate = true;
|
var bIsUpdate = true;
|
||||||
|
|
||||||
if(request == null){
|
if(request == null){
|
||||||
request = [{
|
request = [{
|
||||||
writeQueueNums:16,
|
writeQueueNums:16,
|
||||||
@@ -309,6 +308,7 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio
|
|||||||
template: 'topicModifyDialog',
|
template: 'topicModifyDialog',
|
||||||
controller: 'topicModifyDialogController',
|
controller: 'topicModifyDialogController',
|
||||||
data:{
|
data:{
|
||||||
|
sysFlag:sysFlag,
|
||||||
topicRequestList:request,
|
topicRequestList:request,
|
||||||
allClusterNameList:Object.keys(resp.data.clusterInfo.clusterAddrTable),
|
allClusterNameList:Object.keys(resp.data.clusterInfo.clusterAddrTable),
|
||||||
allBrokerNameList:Object.keys(resp.data.brokerServer),
|
allBrokerNameList:Object.keys(resp.data.brokerServer),
|
||||||
@@ -320,7 +320,7 @@ module.controller('topicController', ['$scope', 'ngDialog', '$http','Notificatio
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.openAddDialog = function () {
|
$scope.openAddDialog = function () {
|
||||||
$scope.openCreateOrUpdateDialog(null);
|
$scope.openCreateOrUpdateDialog(null, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
@@ -61,8 +61,7 @@
|
|||||||
ng-click="consumerView(topic)">consumer {{'MANAGE' | translate}}
|
ng-click="consumerView(topic)">consumer {{'MANAGE' | translate}}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-raised btn-sm btn-primary" type="button"
|
<button class="btn btn-raised btn-sm btn-primary" type="button"
|
||||||
ng-show="{{!sysFlag}}"
|
ng-click="openUpdateDialog(topic, sysFlag)">topic {{'CONFIG' |translate}}
|
||||||
ng-click="openUpdateDialog(topic)">topic {{'CONFIG' |translate}}
|
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-raised btn-sm btn-primary" type="button"
|
<button class="btn btn-raised btn-sm btn-primary" type="button"
|
||||||
ng-show="{{!sysFlag}}"
|
ng-show="{{!sysFlag}}"
|
||||||
@@ -213,6 +212,7 @@
|
|||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<div class="ngdialog-buttons">
|
<div class="ngdialog-buttons">
|
||||||
<button type="button" class="ngdialog-button ngdialog-button-primary"
|
<button type="button" class="ngdialog-button ngdialog-button-primary"
|
||||||
|
ng-show="{{!ngDialogData.sysFlag}}"
|
||||||
ng-click="postTopicRequest(item)">{{ 'COMMIT' | translate }}
|
ng-click="postTopicRequest(item)">{{ 'COMMIT' | translate }}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="ngdialog-button ngdialog-button-secondary"
|
<button type="button" class="ngdialog-button ngdialog-button-secondary"
|
||||||
|
|||||||
Reference in New Issue
Block a user