Skip to content

Commit

Permalink
fix(admin): disable to add new form item during the data loading
Browse files Browse the repository at this point in the history
* Add button is now disabled when the data are loading - we want to avoid potential bug (edge case)
when new item is locally added to the list and then is rewritten by asynchronously loaded data from BE.
  • Loading branch information
HejdaJakub committed Oct 24, 2023
1 parent 5ff7566 commit 2a8a74d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ <h1 class="page-subtitle">

<button
*ngIf="editAuth"
[disabled]="loadingTable"
(click)="add()"
color="accent"
class="me-2 action-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1 class="page-subtitle">

<button
*ngIf="editAuth"
[disabled]="loadingTable"
(click)="add()"
color="accent"
class="me-2 action-button"
Expand Down

0 comments on commit 2a8a74d

Please sign in to comment.