Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(translations): update translation token
Browse files Browse the repository at this point in the history
  • Loading branch information
wowshakhov committed Aug 23, 2017
1 parent 0bfe8a0 commit 986de5e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,19 @@ export class SgTemplateListComponent implements OnInit {
}

public deleteSecurityGroupTemplate(securityGroup: SecurityGroup): void {
this.dialogService.confirm('CONFIRM_DELETE_TEMPLATE', 'COMMON.NO', 'COMMON.YES')
this.dialogService.confirm(
'DIALOG_MESSAGES.TEMPLATE.CONFIRM_DELETION',
'COMMON.NO',
'COMMON.YES'
)
.onErrorResumeNext()
.switchMap(() => this.securityGroupService.deleteTemplate(securityGroup.id))
.subscribe(
res => {
if (res && res.success === 'true') {
this.customSecurityGroupList = this.customSecurityGroupList.filter(sg => sg.id !== securityGroup.id);
this.customSecurityGroupList = this.customSecurityGroupList
.filter(sg => sg.id !== securityGroup.id);

this.notificationService.message({
translationToken: 'NOTIFICATIONS.TEMPLATE.DELETED',
interpolateParams: { name: securityGroup.name }
Expand Down

0 comments on commit 986de5e

Please sign in to comment.