Browse Source

chore: update CHANGELOG

pull/2437/head
Sanjeev Sharma 2 years ago
committed by Thomas
parent
commit
05dca4415c
  1. 6
      CHANGELOG.md
  2. 62
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html

6
CHANGELOG.md

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Added
- Supported enter key press to submit the form of the create or update access dialog
## 2.9.0 - 2023-10-08 ## 2.9.0 - 2023-10-08
### Added ### Added

62
apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html

@ -4,37 +4,37 @@
(keyup.enter)="accessForm.valid && onSubmit()" (keyup.enter)="accessForm.valid && onSubmit()"
(ngSubmit)="onSubmit()" (ngSubmit)="onSubmit()"
> >
<h1 i18n mat-dialog-title>Grant access</h1> <h1 i18n mat-dialog-title>Grant access</h1>
<div class="flex-grow-1 py-3" mat-dialog-content> <div class="flex-grow-1 py-3" mat-dialog-content>
<div> <div>
<mat-form-field appearance="outline" class="w-100"> <mat-form-field appearance="outline" class="w-100">
<mat-label i18n>Alias</mat-label> <mat-label i18n>Alias</mat-label>
<input <input
formControlName="alias" formControlName="alias"
matInput matInput
type="text" type="text"
(keydown.enter)="$event.stopPropagation()" (keydown.enter)="$event.stopPropagation()"
/> />
</mat-form-field> </mat-form-field>
</div>
<div>
<mat-form-field appearance="outline" class="w-100">
<mat-label i18n>Type</mat-label>
<mat-select formControlName="type">
<mat-option i18n value="PUBLIC">Public</mat-option>
</mat-select>
</mat-form-field>
</div>
</div> </div>
<div class="justify-content-end" mat-dialog-actions> <div>
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button> <mat-form-field appearance="outline" class="w-100">
<button <mat-label i18n>Type</mat-label>
color="primary" <mat-select formControlName="type">
mat-flat-button <mat-option i18n value="PUBLIC">Public</mat-option>
type="submit" </mat-select>
[disabled]="!accessForm.valid" </mat-form-field>
>
<ng-container i18n>Save</ng-container>
</button>
</div> </div>
</div>
<div class="justify-content-end" mat-dialog-actions>
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button>
<button
color="primary"
mat-flat-button
type="submit"
[disabled]="!accessForm.valid"
>
<ng-container i18n>Save</ng-container>
</button>
</div>
</form> </form>

Loading…
Cancel
Save