Skip to content

Commit

Permalink
Disable add tag button when no selected tag
Browse files Browse the repository at this point in the history
  • Loading branch information
JeltevanBoheemen committed Nov 8, 2023
1 parent 0c0f087 commit 7055265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/tag/tag-select/tag-select.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</ng-container>
</div>
<div class="control">
<button class="button tag" aria-label="add tag" (click)="confirm()">
<button class="button tag" aria-label="add tag" (click)="confirm()" [disabled]="!selectedTag">
<span class="icon"><fa-icon [icon]="faCheck"></fa-icon></span>
</button>
</div>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/tag/tag-select/tag-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export class TagSelectComponent {

confirm() {
this.selection.emit(this.selectedTag);
this.selectedTag = undefined;
}
}

0 comments on commit 7055265

Please sign in to comment.