File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
projects/components/src/time-range Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 40
40
}
41
41
}
42
42
43
- :host {
44
- .refresh {
43
+ .refresh {
44
+ margin-left : 8px ;
45
+ & :not (.emphasized ) {
45
46
::ng- deep {
46
47
button.button.solid {
47
48
@include top- bar- dark- button- background;
50
51
}
51
52
}
52
53
}
53
-
54
- margin-left: 8px;
55
- cursor : pointer;
56
- height: 32px;
57
- display: flex;
58
- align-items: center;
59
54
}
60
55
}
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ import { PopoverRef } from '../popover/popover-ref';
56
56
<ht-button
57
57
*ngIf="this.getRefreshButtonData | htMemoize: timeRange | async as refreshButton"
58
58
class="refresh"
59
+ [ngClass]="refreshButton.isEmphasized ? 'emphasized' : ''"
59
60
[label]="refreshButton.text$ | async"
60
61
icon="${ IconType . Refresh } "
61
62
size="${ ButtonSize . Small } "
@@ -106,6 +107,7 @@ export class TimeRangeComponent {
106
107
of ( {
107
108
text$ : of ( 'Refresh' ) ,
108
109
role : ButtonRole . Secondary ,
110
+ isEmphasized : false ,
109
111
onClick : ( ) => this . onRefresh ( timeRange )
110
112
} ) ,
111
113
this . ngZone . runOutsideAngular ( ( ) =>
@@ -123,6 +125,7 @@ export class TimeRangeComponent {
123
125
map ( duration => `Refresh - updated ${ duration . toString ( ) } ago` )
124
126
) ,
125
127
role : ButtonRole . Primary ,
128
+ isEmphasized : true ,
126
129
onClick : ( ) => this . onRefresh ( timeRange )
127
130
} ) )
128
131
)
@@ -141,5 +144,6 @@ export class TimeRangeComponent {
141
144
interface RefreshButtonData {
142
145
text$ : Observable < string > ;
143
146
role : ButtonRole ;
147
+ isEmphasized : boolean ;
144
148
onClick ( ) : void ;
145
149
}
You can’t perform that action at this time.
0 commit comments