Skip to content

Commit

Permalink
removed logs and adjusted html
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrrdk committed Jan 8, 2025
1 parent eeed481 commit ea28782
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export abstract class AbstractBaseModalComponent {
}

async hide(): Promise<void> {
console.log('close modal abstract')
this.modalService.hide(this.modalId)

//Fix when calling hide and show form within a modal -- if it is called directly after another the new modal won't open
Expand All @@ -29,8 +28,7 @@ export abstract class AbstractBaseModalComponent {
const bsModalRef: BsModalRef = this.modalService.show(modalType, { initialState })
this.bsModalRef = bsModalRef
bsModalRef.setClass('modal-lg')
this.modalId = bsModalRef.id
console.log(`new id ${this.modalId}`)
this.modalId = bsModalRef.id

return bsModalRef.content.event
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Generate public key</h4>
<button
Expand All @@ -13,19 +11,20 @@ <h4 class="modal-title">Generate public key</h4>
></button>
</div>
<div class="modal-body">
<alert type="danger">
<div class="alert alert-danger">
Hereby a new keypair is generated, the public key will be set automatically. A download window for the
private key will also open.
<strong
>In order to use the new key, the permissions of the key may have to be adjusted. For this purpose call<br />
<code style="color: #777777">chmod 0600 nameOfTheKey</code>.</strong
>In order to use the new key, the permissions of the key may have to be adjusted. For this purpose call the following command:<br />
<code style="color: #777777">chmod 0600 nameOfTheKey</code></strong
>
<alert type="warning">
<hr>
<strong>
We do not store the private key anywhere!<br />

In case you lose your private key, it is lost permanently!
</alert>
<div class="form-check">
</strong>
<div class="form-check">
<input
class="form-check-input"
name="public_key_acknowledgement_checkbox"
Expand All @@ -38,7 +37,7 @@ <h4 class="modal-title">Generate public key</h4>
I hereby confirm that I am aware of the effects of generating a new SSH-key.
</label>
</div>
</alert>
</div>
</div>

<div class="modal-footer">
Expand All @@ -54,8 +53,3 @@ <h4 class="modal-title">Generate public key</h4>
</button>
<button class="btn btn-primary col-md-4" type="reset" (click)="hide()">Cancel</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Change public key</h4>
<button
Expand Down Expand Up @@ -67,6 +65,3 @@ <h4 class="modal-title">Change public key</h4>
</button>
<button class="btn btn-primary col-md-4" type="reset" (click)="hide()">Cancel</button>
</div>
</div>
<!-- /.modal-content -->
</div>

0 comments on commit ea28782

Please sign in to comment.