Fixes create quiz button state on empty input

parent 58a60148
Pipeline #17957 passed with stages
in 8 minutes and 53 seconds
......@@ -84,9 +84,9 @@
<button *ngIf="!canEditQuiz && !isAddingDemoQuiz && !isAddingABCDQuiz"
id="addSession"
class="btn btn-success btn-block pointer"
[class.disabled]="passwordRequired && !serverPassword.length"
[class.disabled]="!canAddQuiz"
(click)="handleClick('addSession') && setAsCurrentQuiz(['/quiz', 'manager', 'overview'])"
[disabled]="passwordRequired && !serverPassword.length">
[disabled]="!canAddQuiz">
<span class="mr-1">{{'component.hashtag_management.create_session' | translate}}</span>
<i class="fas fa-edit"></i>
</button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment