File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ $primary: $red;
41
41
transform : scale (0 );
42
42
}
43
43
44
+ .events-pending-list.no-events {
45
+ display : none ;
46
+ }
47
+
44
48
.task-list li {
45
49
background-color : $gray-900 ;
46
50
color : $body-color ;
Original file line number Diff line number Diff line change @@ -116,7 +116,11 @@ pub fn main_view(p: &MainViewProps) -> Html {
116
116
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" ></span>
117
117
<span class="visually-hidden" >{ "Submitting events..." } </span>
118
118
</button>
119
- <ul class="dropdown-menu dropdown-menu-dark" >
119
+ <ul class={ classes!(
120
+ "events-pending-list" ,
121
+ p. events_pending_submission. is_empty( ) . then( || "no-events" ) ,
122
+ "dropdown-menu" , "dropdown-menu-dark"
123
+ ) } >
120
124
{ for p. events_pending_submission. iter( ) . map( |e| html! {
121
125
<li>{ format!( "{:?}" , e) } </li> // TODO: make events prettier
122
126
} ) }
You can’t perform that action at this time.
0 commit comments