44 < button mat-icon-button color ="primary " (click) ="onClose() ">
55 < mat-icon > arrow_back</ mat-icon >
66 </ button >
7-
7+
88 < button *ngIf ="canEdit " mat-button color ="primary " (click) ="editObservation() "> EDIT</ button >
99 </ mat-toolbar-row >
1010 </ mat-toolbar >
6060 </ div >
6161 </ div >
6262
63- < div class ="item-thumbnail ">
63+ < div *ngIf =" !observation?.noGeometry " class ="item-thumbnail ">
6464 < img [src] ="observation.style.iconUrl " />
6565 </ div >
6666 </ div >
6767
68- < div class ="item-map ">
68+ < div *ngIf =" !observation?.noGeometry " class ="item-map ">
6969 < div class ="item-map__view ">
7070 < map-clip [feature] ="observation "> </ map-clip >
7171 </ div >
7272 </ div >
7373
74- < div class ="item-location ">
74+ < div *ngIf =" !observation?.noGeometry " class ="item-location ">
7575 < button mat-button color ="primary " (click) ="onObservationLocationClick() " class ="actions__location-button ">
7676 < mat-icon class ="actions__location-icon "> my_location</ mat-icon > {{observation?.geometry | geometry:5}}
7777 </ button >
8282 </ span >
8383 </ div >
8484
85+ < div *ngIf ="observation?.noGeometry " class ="item-no-geometry ">
86+ < span > This observation does not have geometry data</ span >
87+ </ div >
88+
8589 < mat-divider > </ mat-divider >
8690
8791 < div *ngIf ="importantEditor.open " class ="important " @important >
9094 < textarea matInput [(ngModel)] ="importantEditor.description "> </ textarea >
9195 </ mat-form-field >
9296 < div class ="important__actions ">
93- < button mat-button color ="primary " (click) ="clearImportant() "> {{observation?.important ? 'Remove' : 'Cancel'}}</ button >
94- < button mat-flat-button color ="primary " (click) ="markAsImportant() " class ="important__actions--confirm "> {{observation?.important ? 'Update' : 'Flag As Important'}}</ button >
97+ < button mat-button color ="primary " (click) ="clearImportant() "> {{observation?.important ? 'Remove' :
98+ 'Cancel'}}</ button >
99+ < button mat-flat-button color ="primary " (click) ="markAsImportant() "
100+ class ="important__actions--confirm "> {{observation?.important ? 'Update' : 'Flag As Important'}}</ button >
95101 </ div >
96102 </ div >
97103
98104 < mat-card-actions >
99105 < div class ="actions ">
100- < div *ngIf ="observation?.favoriteUserIds?.length " class ="favorites " (click) ="showFavoriteUsers() " matRipple matRippleCentered ="true " matRippleUnbounded ="true ">
106+ < div *ngIf ="observation?.favoriteUserIds?.length " class ="favorites " (click) ="showFavoriteUsers() " matRipple
107+ matRippleCentered ="true " matRippleUnbounded ="true ">
101108 < span class ="favorites__count "> {{observation?.favoriteUserIds?.length}}</ span >
102- < span class ="favorites__label "> {{observation?.favoriteUserIds?.length === 1 ? "FAVORITE": "FAVORITES"}}</ span >
109+ < span class ="favorites__label "> {{observation?.favoriteUserIds?.length === 1 ? "FAVORITE":
110+ "FAVORITES"}}</ span >
103111 </ div >
104112 < div class ="actions-icons ">
105113 < div *ngIf ="canEditImportant ">
106- < button mat-icon-button (click) ="onFlagAsImportant() " class ="actions--inactive " [ngClass] ="{'actions__important--active': observation.important} " matTooltip ="Flag As Important " matTooltipPosition ="above ">
114+ < button mat-icon-button (click) ="onFlagAsImportant() " class ="actions--inactive "
115+ [ngClass] ="{'actions__important--active': observation.important} " matTooltip ="Flag As Important "
116+ matTooltipPosition ="above ">
107117 < mat-icon > {{observation.important ? 'flag' : 'outlined_flag'}}</ mat-icon >
108118 </ button >
109119 </ div >
110120
111121 < div class ="actions__favorite ">
112- < button mat-icon-button (click) ="toggleFavorite() " class ="actions--inactive " [ngClass] ="{'actions__favorite--active': isUserFavorite} " matTooltip ="Add To Favorites " matTooltipPosition ="above ">
122+ < button mat-icon-button (click) ="toggleFavorite() " class ="actions--inactive "
123+ [ngClass] ="{'actions__favorite--active': isUserFavorite} " matTooltip ="Add To Favorites "
124+ matTooltipPosition ="above ">
113125 < mat-icon > {{isUserFavorite ? 'favorite' : 'favorite_border'}}</ mat-icon >
114126 </ button >
115127 < span *ngIf ="favorites " class ="actions__favorite-label "> {{favorites}}</ span >
124136 </ mat-card >
125137
126138 < div class ="form-card " *ngFor ="let form of observationForm?.forms; let i = index ">
127- < observation-view-form [form] ="form " [attachments] ="observation.attachments " [expand] ="i === 0 "> </ observation-view-form >
139+ < observation-view-form [form] ="form " [attachments] ="observation.attachments "
140+ [expand] ="i === 0 "> </ observation-view-form >
128141 </ div >
129142 </ div >
130143</ div >
0 commit comments