Skip to content

Commit

Permalink
Merge pull request #153 from chengyumeng/hotfix/ingress
Browse files Browse the repository at this point in the history
Hotfix/ingress
  • Loading branch information
wilhelmguo authored Dec 14, 2018
2 parents 6519fd2 + ad25e6c commit 9b670a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ListIngressComponent implements OnInit {
this.delete.emit(ingress);
}

editService(ingress: Ingress) {
editIngress(ingress: Ingress) {
this.edit.emit(ingress);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="row flex-items-xs-between flex-items-xs-top" style="padding-left: 15px; padding-right: 15px;">
<h2 class="header-title">已删除服务列表</h2>
<h2 class="header-title">已删除 Ingress 列表</h2>
</div>
<clr-datagrid (clrDgRefresh)="refresh($event)">
<clr-dg-column [clrDgField]="'id'" class="col-query-id">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class TrashIngressComponent implements OnInit, OnDestroy {
this.subscription = deletionDialogService.confirmationConfirm$.subscribe(message => {
if (message &&
message.state === ConfirmationState.CONFIRMED &&
message.source === ConfirmationTargets.TRASH_SERVICE) {
let id = message.data;
message.source === ConfirmationTargets.TRASH_INGRESS) {
const id = message.data;
this.ingressService.deleteById(id, 0, false)
.subscribe(
response => {
Expand Down Expand Up @@ -71,7 +71,7 @@ export class TrashIngressComponent implements OnInit, OnDestroy {
this.ingressService.list(this.pageState, 'true')
.subscribe(
response => {
let data = response.data;
const data = response.data;
this.pageState.page.totalPage = data.totalPage;
this.pageState.page.totalCount = data.totalCount;
this.ingresses = data.list;
Expand All @@ -81,7 +81,7 @@ export class TrashIngressComponent implements OnInit, OnDestroy {
}

deleteIngress(ingress: Ingress) {
let deletionMessage = new ConfirmationMessage(
const deletionMessage = new ConfirmationMessage(
'删除 Ingress 确认',
'你确认永久删除 Ingress ' + ingress.name + ' ?删除后将不可恢复!',
ingress.id,
Expand Down

0 comments on commit 9b670a3

Please sign in to comment.