1 import { Component } from '@angular/core';
3 import { I18n } from '@ngx-translate/i18n-polyfill';
4 import { BsModalRef } from 'ngx-bootstrap/modal';
6 import { ActionLabelsI18n } from '../../../shared/constants/app.constants';
9 selector: 'cd-rgw-user-swift-key-modal',
10 templateUrl: './rgw-user-swift-key-modal.component.html',
11 styleUrls: ['./rgw-user-swift-key-modal.component.scss']
13 export class RgwUserSwiftKeyModalComponent {
20 public bsModalRef: BsModalRef,
22 public actionLabels: ActionLabelsI18n
24 this.resource = this.i18n('Swift Key');
25 this.action = this.actionLabels.SHOW;
29 * Set the values displayed in the dialog.
31 setValues(user: string, secret_key: string) {
33 this.secret_key = secret_key;