]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
ad10e070f7e6db6eda8b87c2158420b968389744
[ceph.git] /
1 import { Component } from '@angular/core';
2
3 import { I18n } from '@ngx-translate/i18n-polyfill';
4 import { BsModalRef } from 'ngx-bootstrap/modal';
5
6 import { ActionLabelsI18n } from '../../../shared/constants/app.constants';
7
8 @Component({
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']
12 })
13 export class RgwUserSwiftKeyModalComponent {
14   user: string;
15   secret_key: string;
16   resource: string;
17   action: string;
18
19   constructor(
20     public bsModalRef: BsModalRef,
21     private i18n: I18n,
22     public actionLabels: ActionLabelsI18n
23   ) {
24     this.resource = this.i18n('Swift Key');
25     this.action = this.actionLabels.SHOW;
26   }
27
28   /**
29    * Set the values displayed in the dialog.
30    */
31   setValues(user: string, secret_key: string) {
32     this.user = user;
33     this.secret_key = secret_key;
34   }
35 }