1
1
< div *ngIf ="user " class ="h-full grid gap-0 bg-white " style ="grid-template-rows: 65px minmax(auto,92%) 65px; "
2
2
[ngClass] ="somethingLoading?'wait':null ">
3
+ < div *ngIf ="roleAssumed " class ="absolute left-0 right-0 flex items-center justify-center pointer-events-none "
4
+ style ="top:17px;z-index:100 ">
5
+ < span class ="inline-flex items-center px-2 py-0.5 rounded font-medium bg-red-100 text-red-800 ">
6
+ You are viewing this page as {{user.role}}
7
+ </ span >
8
+ </ div >
3
9
< ng-container [ngTemplateOutlet] ="navigationBar " [ngTemplateOutletContext] ="{isBottom:false} ">
4
10
</ ng-container >
5
11
< ng-template #dummyDiv >
50
56
[ngStyle] ="{'display':isThisTheLabelImLookingFor(label.name,i,activeTask.taskType)?null:'none'} "
51
57
[ngClass] ="[getBackground(label.color), getText(label.color), getBorder(label.color), getHover(label.color)] ">
52
58
< div class ="truncate " style ="max-width: 260px; "> {{label.name}}
53
- < kbd *ngIf ="label.hotkey && (displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id) "
59
+ < kbd *ngIf ="label.hotkey && (displayUserId == GOLD_USER_ID || displayUserId == user .id) "
54
60
class ="ml-1 uppercase inline-flex items-center border bg-white border-gray-200 rounded px-2 text-sm font-sans font-medium text-gray-400 "> {{label.hotkey}}</ kbd >
55
61
</ div >
56
62
</ button >
@@ -235,7 +241,7 @@ <h1 class="text-lg text-gray-900 mb-2">Warning
235
241
236
242
< div class ="flex flex-grow items-center ">
237
243
<!--first N options as buttons-->
238
- < div *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id) && this.labelingTasksMap.get(task.id) "
244
+ < div *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == user .id) && this.labelingTasksMap.get(task.id) "
239
245
class ="flex flex-row "
240
246
[ngClass] ="[this.labelingTasksMap.get(task.id).labels.length && showNLabelButton?'':'hidden'] ">
241
247
< button
@@ -245,15 +251,15 @@ <h1 class="text-lg text-gray-900 mb-2">Warning
245
251
[ngClass] ="[getBackground(label.color), getText(label.color), getBorder(label.color), getHover(label.color)] ">
246
252
< label
247
253
class ="leading-5 truncate max-w-xs cursor-pointer "> {{label.name}}
248
- < kbd *ngIf ="label.hotkey && (displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id) "
254
+ < kbd *ngIf ="label.hotkey && (displayUserId == GOLD_USER_ID || displayUserId == user .id) "
249
255
class ="ml-1 uppercase inline-flex items-center border bg-white border-gray-200 rounded px-2 text-sm font-sans font-medium text-gray-400 "> {{label.hotkey}}</ kbd >
250
256
</ label >
251
257
</ button >
252
258
</ div >
253
259
<!--Button with all posibilities and search-->
254
260
255
261
< button data-tip ="Choose from your labels "
256
- *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id) "
262
+ *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == user .id) "
257
263
(mouseup) ="openLabelBoxForTask($event,task.id) "
258
264
class ="tooltip tooltip-top flex flex-row flex-nowrap bg-white text-gray-700 text-sm font-medium mr-3 px-2 py-0.5 rounded-md border border-gray-300 hover:bg-gray-50 focus:outline-none ">
259
265
< span > other</ span >
@@ -269,7 +275,7 @@ <h1 class="text-lg text-gray-900 mb-2">Warning
269
275
< div *ngIf ="rla.sourceType != LabelSourceType.INFORMATION_SOURCE || (rla.sourceType == LabelSourceType.INFORMATION_SOURCE && showInformationSourcesFlag) "
270
276
[attr.data-tip] ="rla.dataTip "
271
277
class ="tooltip table "
272
- [ngClass] ="(displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id)?'mt-3':null ">
278
+ [ngClass] ="(displayUserId == GOLD_USER_ID || displayUserId == user .id)?'mt-3':null ">
273
279
< ng-template
274
280
[ngIf] ="rla.sourceType != LabelSourceType.MANUAL "
275
281
[ngIfElse] ="displayNormalLabel ">
@@ -334,7 +340,7 @@ <h1 class="text-lg text-gray-900 mb-2">Warning
334
340
{{rla.labelingTaskLabel.name}}
335
341
</ div >
336
342
< label
337
- *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id) "
343
+ *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == user .id) "
338
344
class ="pl-1 cursor-pointer "
339
345
(click) ="deleteRecordLabelAssociation($event,rla.id) ">
340
346
< svg xmlns ="http://www.w3.org/2000/svg "
@@ -778,15 +784,15 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
778
784
< div class ="text-sm leading-5 text-gray-500 flex-shrink-0 mr-3 my-3 ">
779
785
< div data-tip ="If you reached the end, you can select new filters in the browser "
780
786
class ="tooltip tooltip-bottom relative ">
781
- {{sessionData?.currentPos }} / {{sessionData ?.recordIds.length}} records in < span
787
+ {{huddleData?.linkData.requestedPos }} / {{huddleData ?.recordIds.length}} records in < span
782
788
class ="cursor-help underline "
783
789
style ="text-decoration-style: dotted;text-underline-offset: 2px;text-decoration-color: #22c55e "> current
784
790
session</ span >
785
791
</ div >
786
792
</ div >
787
793
< div class ="tooltip tooltip-left " data-tip ="Arrow left ">
788
794
< button #previsousButton tabindex ="0 "
789
- [disabled] ="!sessionData || sessionData.currentPos == 1 ?true:null "
795
+ [disabled] ="!huddleData || huddleData.linkData.requestedPos == 1 ?true:null "
790
796
[ngClass] ="previsousButton.disabled ? 'opacity-50 cursor-not-allowed' : 'opacity-100 cursor-pointer' "
791
797
(click) ="previousRecord() "
792
798
class ="bg-white text-gray-700 text-xs font-semibold mr-3 px-4 py-1.5 rounded-md border border-gray-300 whitespace-nowrap inline-flex items-center hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 "> Back
@@ -803,7 +809,7 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
803
809
</ div >
804
810
< div class ="tooltip tooltip-left " data-tip ="Arrow right ">
805
811
< button #nextButton tabindex ="0 "
806
- [disabled] ="!sessionData || !sessionData .recordIds || sessionData.currentPos >= sessionData .recordIds.length ?true:null "
812
+ [disabled] ="!huddleData || !huddleData .recordIds || huddleData.linkData.requestedPos >= huddleData .recordIds.length ?true:null "
807
813
[ngClass] ="nextButton.disabled ? 'opacity-50 cursor-not-allowed' : 'opacity-100 cursor-pointer' "
808
814
(click) ="nextRecord() "
809
815
class ="bg-indigo-700 text-white text-xs font-semibold px-4 py-1.5 rounded-md cursor-pointer whitespace-nowrap inline-flex items-center hover:bg-indigo-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 "> Next
@@ -862,7 +868,7 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
862
868
class ="rounded-lg text-white pl-2 normal-case self-start border rounded-l-none text-sm leading-5 font-bold pr-1 "
863
869
[ngClass] ="[getBackground(exData.labelColor), getText(exData.labelColor), getBorder(exData.labelColor)] ">
864
870
{{exData.labelDisplay}}
865
- < label *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == loggedInUser .id) "
871
+ < label *ngIf ="(displayUserId == GOLD_USER_ID || displayUserId == user .id) "
866
872
class ="p-1 pl-0 cursor-pointer "
867
873
(click) ="deleteRecordLabelAssociation($event,exData.markedEntry.id) ">
868
874
< svg xmlns ="http://www.w3.org/2000/svg " class ="h-4 w-4 inline-block stroke-current relative "
0 commit comments