import { Component } from '@angular/core';
-import { I18n } from '@ngx-translate/i18n-polyfill';
-import { BsModalRef } from 'ngx-bootstrap/modal';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ActionLabelsI18n } from '../../../shared/constants/app.constants';
+import { ActionLabelsI18n } from '~/app/shared/constants/app.constants';
@Component({
selector: 'cd-rgw-user-swift-key-modal',
resource: string;
action: string;
- constructor(
- public bsModalRef: BsModalRef,
- private i18n: I18n,
- public actionLabels: ActionLabelsI18n
- ) {
- this.resource = this.i18n('Swift Key');
+ constructor(public activeModal: NgbActiveModal, public actionLabels: ActionLabelsI18n) {
+ this.resource = $localize`Swift Key`;
this.action = this.actionLabels.SHOW;
}