Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit bc273e6

Browse files
committed
disable generate link when link is created
1 parent 9df913c commit bc273e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/weak-supervision/components/crowd-labeler-details/component/crowd-labeler-details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ <h3 class="mt-2 text-3xl font-bold leading-8 tracking-tight text-gray-900 sm:tex
184184
<div class="mt-4">
185185
<button #genButton (click)="generateAccessLink()"
186186
[ngClass]="genButton.disabled ? 'opacity-50 cursor-not-allowed' : 'opacity-100 cursor-pointer'"
187-
[disabled]="!crowdSettings.taskId || !crowdSettings.annotatorId || !crowdSettings.dataSliceId"
187+
[disabled]="!crowdSettings.taskId || !crowdSettings.annotatorId || !crowdSettings.dataSliceId || crowdSettings.accessLinkParsed"
188188
class="mt-2 w-40 bg-indigo-700 text-white text-xs leading-4 font-semibold px-4 py-2 rounded-md cursor-pointer hover:bg-indigo-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
189189
Generate Link
190190
</button>

0 commit comments

Comments
 (0)