diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.ts new file mode 100644 index 000000000..7bd63bcc0 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.ts @@ -0,0 +1,30 @@ +import { Component } from '@angular/core'; + +import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; + +import { ActionLabelsI18n } from '~/app/shared/constants/app.constants'; + +@Component({ + selector: 'cd-rgw-user-swift-key-modal', + templateUrl: './rgw-user-swift-key-modal.component.html', + styleUrls: ['./rgw-user-swift-key-modal.component.scss'] +}) +export class RgwUserSwiftKeyModalComponent { + user: string; + secret_key: string; + resource: string; + action: string; + + constructor(public activeModal: NgbActiveModal, public actionLabels: ActionLabelsI18n) { + this.resource = $localize`Swift Key`; + this.action = this.actionLabels.SHOW; + } + + /** + * Set the values displayed in the dialog. + */ + setValues(user: string, secret_key: string) { + this.user = user; + this.secret_key = secret_key; + } +} |