File tree Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ import {YouTubeService} from "./services/youtube.service";
25
25
always be consistent and up to date.
26
26
</p>
27
27
<p class="state">{{ state | json }}</p>
28
- <p class="state" *ngIf="disableSearch">O</p>
28
+ <p class="state" *ngIf="disableSearch">state is empty</p>
29
+ <h2 *ngIf="!disableSearch">Search results:</h2>
29
30
</div>
30
- <h2 *ngIf="!disableSearch">Search results:</h2>
31
31
<h2 *ngIf="disableSearch || searchResults.length == 0">No results</h2>
32
32
<div class="row col-md-8">
33
33
<div *ngFor="let result of searchResults" class="thumbnail col-sm-6 col-md-4">
34
34
<div class="caption">
35
35
<h3>{{ result.title }}</h3>
36
36
</div>
37
- <!--< img src="{{ result.thumbnailUrl }}" />-- >
37
+ <img src="{{ result.thumbnailUrl }}" />
38
38
</div>
39
39
</div>
40
40
</section>
Original file line number Diff line number Diff line change @@ -5,14 +5,22 @@ import {Store} from '@ngrx/store';
5
5
selector : 'proximity-selector' ,
6
6
template : `
7
7
<div class="input-group">
8
- <label for="useLocation">Use current location</label>
9
- <input type="checkbox"
8
+ <label for="useLocation"
9
+ [ngClass]="{'disabled': disabled}">
10
+ Use current location
11
+ </label>
12
+ <input type="checkbox"
13
+ id="useLocation"
10
14
[disabled]="disabled"
11
15
(change)="onLocation($event)">
12
16
</div>
13
17
<div class="input-group">
14
- <label for="locationRadius">Radius</label>
18
+ <label for="locationRadius"
19
+ [ngClass]="{'disabled': !active || disabled}">
20
+ Radius
21
+ </label>
15
22
<input type="range" min="1" max="100" value="50"
23
+ id="locationRadius"
16
24
[disabled]="!active || disabled"
17
25
(change)="onRadius($event)">
18
26
</div>
Original file line number Diff line number Diff line change 1
- /* Master Styles */
2
1
h1 {
3
2
color : # 369 ;
4
3
font-family : Arial, Helvetica, sans-serif;
@@ -12,3 +11,18 @@ h2, h3 {
12
11
body {
13
12
margin : 2em ;
14
13
}
14
+ search-box , proximity-selector {
15
+ display : block;
16
+ margin-top : 1.2rem ;
17
+ }
18
+ .state {
19
+ font-family : monospace;
20
+ font-size : smaller;
21
+ }
22
+ .row {
23
+ margin-bottom : 1.6rem ;
24
+ margin-top : 1.6rem ;
25
+ }
26
+ label .disabled {
27
+ color : darkgray;
28
+ }
You can’t perform that action at this time.
0 commit comments