]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-user-swift-key-modal / rgw-user-swift-key-modal.component.ts
index ad10e070f7e6db6eda8b87c2158420b968389744..7bd63bcc02bd38bbca1e9bd2690f89a2b1efc537 100644 (file)
@@ -1,9 +1,8 @@
 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',
@@ -16,12 +15,8 @@ export class RgwUserSwiftKeyModalComponent {
   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;
   }