Skip to content

Commit

Permalink
Merge pull request alibaba#951 from loadchange/hotfix_service_api
Browse files Browse the repository at this point in the history
Fix: delete service add group name
  • Loading branch information
Fury Zhu authored Mar 22, 2019
2 parents bf162f7 + 8ff2ced commit 7ce7681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ServiceList extends React.Component {
setTimeout(() => this.queryServiceList());
};

deleteService(serviceName) {
deleteService(service) {
const { locale = {} } = this.props;
const { prompt, promptDelete } = locale;
Dialog.confirm({
Expand All @@ -113,7 +113,7 @@ class ServiceList extends React.Component {
onOk: () => {
request({
method: 'DELETE',
url: `v1/ns/service?serviceName=${serviceName}`,
url: `v1/ns/service?serviceName=${service.name}&groupName=${service.groupName}`,
dataType: 'text',
beforeSend: () => this.openLoading(),
success: res => {
Expand Down Expand Up @@ -241,7 +241,7 @@ class ServiceList extends React.Component {
<Button
style={{ marginLeft: 12 }}
type="normal"
onClick={() => this.deleteService(record.name)}
onClick={() => this.deleteService(record)}
>
{deleteAction}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.

0 comments on commit 7ce7681

Please sign in to comment.