|
32 | 32 | </div>
|
33 | 33 | <i class="oncogenic-icon-image"
|
34 | 34 | ng-class="getIconClass(match.model.oncogenicity, match.model.highestSensitiveLevel, match.model.highestResistanceLevel, match.model.vus)"/>
|
35 |
| - <span class="no-annotation" ng-if="!match.model.variantExist">Not annotated by OncoKB</span> |
| 35 | + <span class="no-annotation" ng-if="!match.model.variantExist"> |
| 36 | + <span>Not annotated by OncoKB</span> |
| 37 | + <suggest-curation suggestion="query"></suggest-curation> |
| 38 | + </span> |
36 | 39 | </div>
|
37 | 40 | <div class="search-box-annotation">
|
38 | 41 | <span ng-if="match.model.annotation">{{match.model.annotation}}</span>
|
|
60 | 63 | </div>
|
61 | 64 | </script>
|
62 | 65 |
|
63 |
| -<div class="search-box"> |
64 |
| - <input type="search" class="form-control" placeholder="Search Gene / Alteration / Drug" |
| 66 | +<div class="search-box" ng-init="noResultMatched"> |
| 67 | + <input type="search" class="form-control" ng-class="noResultMatched ? 'no-result': ''" placeholder="Search Gene / Alteration / Drug" |
65 | 68 | ng-model="content.selectedItem"
|
66 | 69 | typeahead-on-select="searchConfirmed($event)"
|
67 | 70 | uib-typeahead="item for item in searchKeyUp($viewValue)"
|
68 | 71 | typeahead-template-url="searchBoxTemplate.html"
|
69 | 72 | typeahead-wait-ms="200"
|
70 | 73 | typeahead-loading="content.loadingSearchResult"
|
71 | 74 | typeahead-min-length="2"
|
| 75 | + typeahead-no-results="noResultMatched" |
72 | 76 | >
|
73 | 77 | <div class="loading" ng-if="content.loadingSearchResult">
|
74 | 78 | <i class="fa fa-spinner fa-spin fa-2x fa-fw"></i>
|
75 | 79 | </div>
|
| 80 | + <div ng-if="noResultMatched" |
| 81 | + class="no-result-info"> |
| 82 | + <span>No result found, please send us an email if you would like {{content.currentQuery}} to be curated.</span> |
| 83 | + <suggest-curation suggestion="content.currentQuery"></suggest-curation> |
| 84 | + </div> |
76 | 85 | </div>
|
0 commit comments