332
332
< ng-template
333
333
[ngIf] ="groupItem.get('manualLabels').controls.length == 0 "
334
334
[ngIfElse] ="dropDownML ">
335
- < button disabled
336
- class ="flex flex-row flex-nowrap select select-sm select-bordered search_reduced_item_width search_custom_drowdown_disabled ">
337
- < div class ="truncate min-w-0 mr-4 ">
338
- < label class ="font-normal "> No
339
- Labels
340
- associated with this
341
- task</ label >
342
- </ div >
343
- </ button >
335
+ < ng-container [ngTemplateOutlet] ="buttonLabelsDisabled "> </ ng-container >
344
336
</ ng-template >
345
337
< ng-template #dropDownML >
346
338
< kern-dropdown-iterative
357
349
< div class ="dropdown ">
358
350
< ng-template
359
351
[ngIf] ="groupItem.get('weakSupervisionLabels').controls.length == 0 "
352
+ formArrayName ="manualLabels "
360
353
[ngIfElse] ="dropDownWS ">
361
- < button disabled
362
- class ="flex flex-row flex-nowrap select select-sm select-bordered search_reduced_item_width search_custom_drowdown_disabled ">
363
- < div class ="truncate min-w-0 mr-4 ">
364
- < label class ="font-normal "> No
365
- Labels associated with this
366
- task</ label >
367
- </ div >
368
- </ button >
354
+ < ng-container [ngTemplateOutlet] ="buttonLabelsDisabled "> </ ng-container >
369
355
</ ng-template >
370
356
< ng-template #dropDownWS >
371
357
< kern-dropdown-iterative
372
358
[arrayOptions] ="groupItem.get('weakSupervisionLabels').controls "
359
+ formArrayName ="manualLabels "
373
360
[hasCheckboxes] ="true "
374
361
(optionClicked) ="setActiveNegateGroup($event) "
375
362
> </ kern-dropdown-iterative >
@@ -1150,4 +1137,19 @@ <h1 class="text-lg text-gray-900 mb-2">Info</h1>
1150
1137
</ div >
1151
1138
</ div >
1152
1139
</ div >
1153
- </ div >
1140
+ </ div >
1141
+
1142
+ < ng-template #buttonLabelsDisabled >
1143
+ < button disabled
1144
+ class ="cursor-not-allowed inline-flex rounded-md border border-gray-300 w-80 shadow-sm px-4 py-1.5 items-center bg-white text-xs font-semibold text-gray-700 cursor-pointer focus:ring-offset-2 focus:ring-offset-gray-400 ">
1145
+ < div class ="truncate min-w-0 mr-4 ">
1146
+ No labels associated with this task
1147
+ </ div >
1148
+ < svg class ="-mr-1 ml-auto h-5 w-5 " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 20 20 "
1149
+ fill ="currentColor " aria-hidden ="true ">
1150
+ < path fill-rule ="evenodd "
1151
+ d ="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z "
1152
+ clip-rule ="evenodd " />
1153
+ </ svg >
1154
+ </ button >
1155
+ </ ng-template >
0 commit comments