fix modal alert
This commit is contained in:
2
dist/qmi-cloud/index.html
vendored
2
dist/qmi-cloud/index.html
vendored
@@ -29,5 +29,5 @@
|
||||
<link rel="stylesheet" href="styles.89804dbd9a428c1d7bdd.css"></head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.1e412a57d83fa0f87b85.js" defer></script></body>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.c7f735261bd7dbbbc140.js" defer></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -29,5 +29,5 @@
|
||||
<link rel="stylesheet" href="styles.89804dbd9a428c1d7bdd.css"></head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.1e412a57d83fa0f87b85.js" defer></script></body>
|
||||
<script src="runtime.b2175705264e769e2e1d.js" defer></script><script src="polyfills-es5.66d659991e5a8ec6fd9f.js" nomodule defer></script><script src="polyfills.3273b4fb03b5abe684b4.js" defer></script><script src="scripts.399e476bb5562d6fc683.js" defer></script><script src="main.c7f735261bd7dbbbc140.js" defer></script></body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -101,23 +101,45 @@ export class ModalInfoComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
rotateAWSKey(item) {
|
||||
this._provisionsService.rotateAWSKey(item._id.toString(), this._userId).subscribe( res => {
|
||||
console.log("res", res);
|
||||
item.outputs = res.outputs;
|
||||
this._alertService.showAlert({
|
||||
type: 'alert-dark',
|
||||
text: `AWS IAM User access key has been rotated!`
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm rotate this access key?',
|
||||
icon: 'tick'
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
var sub = modalRef.content.action.subscribe( (result: any) => {
|
||||
sub.unsubscribe();
|
||||
this._provisionsService.rotateAWSKey(item._id.toString(), this._userId).subscribe( res => {
|
||||
console.log("res", res);
|
||||
item.outputs = res.outputs;
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
rotateSAKey(item) {
|
||||
this._provisionsService.rotateSAKey(item._id.toString(), this._userId).subscribe( res => {
|
||||
console.log("res", res);
|
||||
item.outputs = res.outputs;
|
||||
this._alertService.showAlert({
|
||||
type: 'alert-dark',
|
||||
text: `Storage Account Access Key has been rotated!`
|
||||
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm rotate this access key?',
|
||||
icon: 'tick'
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
var sub = modalRef.content.action.subscribe( (result: any) => {
|
||||
sub.unsubscribe();
|
||||
this._provisionsService.rotateSAKey(item._id.toString(), this._userId).subscribe( res => {
|
||||
console.log("res", res);
|
||||
item.outputs = res.outputs;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user