3131 </ mat-form-field >
3232
3333 < div class ="session-date-filter ">
34+ < mat-form-field class ="short " *ngIf ="!isSessionDateUsingRange ">
35+ < label for =""> Sessions On</ label >
36+ < input matInput formControlName ="session_start_time " [matDatepicker] ="datePicker " [min] ="sessionMinDate " [max] ="sessionMaxDate " [matDatepickerFilter] ="sessionDateFilter " (blur) ="updateMenu() " (focus) ="stepBackMenu($event) ">
37+ < mat-datepicker-toggle matSuffix [for] ="datePicker "> </ mat-datepicker-toggle >
38+ < mat-datepicker #datePicker > </ mat-datepicker >
39+ </ mat-form-field >
40+ </ div >
41+
42+ <!-- <div class="session-date-filter">
3443 <div class="date-range-toggler">
3544 <label for="isSessionDateUsingRanger">Session Start Date</label>
3645 <div>
6271 <mat-datepicker #datePickerSRE></mat-datepicker>
6372 </mat-form-field>
6473 </div>
65- </ div >
66-
74+ </div> -->
6775 </ div >
6876 < div class ="mouse-field-filters form-section ">
6977 < mat-form-field >
153161 < label > Brain Regions</ label >
154162 < input matInput (input) ="filterChanged($event.target.value.toLowerCase()) ">
155163 </ mat-form-field >
156- < div > Selected Brain Region:
164+ <!-- <div>Selected Brain Region:
157165 <div class="chip-list">
158166 <div class="selected-chip" *ngFor="let item of requested_BR">
159167 <div>{{ item }}</div>
@@ -164,16 +172,16 @@ <h4>
164172
165173 <div class="br-selection-area">
166174 <mat-tree [dataSource]="treeDataSource" [treeControl]="treeControl" class="brain-tree">
167- <!-- // This is the tree node template for leaf nodes -->
175+ // This is the tree node template for leaf nodes
168176 <mat-nested-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
169177 <li class="mat-tree-node">
170- <!-- // use a disabled button to provide padding for tree leaf -->
178+ // use a disabled button to provide padding for tree leaf
171179 <button class="treeChevron" mat-icon-button disabled></button>
172180 <mat-checkbox (change)="selectionToggle($event.checked, node)"
173181 [checked]="BT_allSelected(node)">{{node.display}}</mat-checkbox>
174182 </li>
175183 </mat-nested-tree-node>
176- <!-- // This is the tree node template for expandable nodes -->
184+ // This is the tree node template for expandable nodes
177185 <mat-nested-tree-node *matTreeNodeDef="let node; when: BT_hasChild">
178186 <li>
179187 <div class="mat-tree-node">
193201 </li>
194202 </mat-nested-tree-node>
195203 </mat-tree>
196- </ div >
204+ </div> -->
197205 </ div >
198206
199207 </ div >
211219 < button mat-raised-button class ="btn btn-refresh " (click) ="refreshData() "> Refresh Data</ button >
212220 </ div >
213221 </ div >
214- < div class ="checkbox-filters ">
222+ <!-- < div class="checkbox-filters">
215223 <div class="chbox-filter">
216224 <mat-checkbox class="nplot_status_chbox" [checked]="hideMissingPlots" (change)="toggleNplotStatus()">
217225 Only show sessions with behavior plots
@@ -227,19 +235,20 @@ <h4>
227235 Only show sessions with ephys data
228236 </mat-checkbox>
229237 </div>
230- </ div >
238+ </div> -->
231239 </ div >
232240 </ form >
233241
234242 < div [class] ="isLoading && initialLoad ? 'loading-icon loading initial': isLoading ? 'loading-icon loading': 'loading-icon' ">
235243 < img src ="assets/images/loading_icon.gif ">
236- < p [class] ="initialLoad ? 'session-list-loading-message show' : 'session-list-loading-message' ">
237- Loading for the sessions may take a while depending on your internet connection. We appreciate your patience as we load the full list of sessions.
238- </ p >
244+ < p [class] ="initialLoad ? 'session-list-loading-message show' : 'session-list-loading-message' "> </ p >
239245 </ div >
240246 < div class ="table-container ">
241- < table mat-table class ="col-12 " [dataSource] ="dataSource " matSort (matSortChange) ="storeTableInfo($event) ">
242-
247+ < div class ="session-list-loading-shade "
248+ *ngIf ="isLoadingTable ">
249+ < mat-spinner *ngIf ="isLoadingTable "> </ mat-spinner >
250+ </ div >
251+ < table mat-table class ="col-12 " [dataSource] ="sessionRecords " matSort (matSortChange) ="storeTableInfo($event) ">
243252 < ng-container matColumnDef ="session_lab ">
244253 < th mat-header-cell *matHeaderCellDef mat-sort-header > Lab </ th >
245254 < td mat-cell *matCellDef ="let session "> {{session.session_lab}} </ td >
321330 </ table >
322331 </ div >
323332
324- < mat-paginator [pageSize] ="pageSize "
333+ < mat-paginator [length] ="sessionRecordLength "
334+ [pageSize] ="pageSize "
325335 [pageSizeOptions] ="pageSizeOptions "
326336 showFirstLastButtons (page) ="storeTableInfo($event) "> </ mat-paginator >
327337 </ div >
0 commit comments