File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,26 @@ impl View {
167
167
self . state = ResourcesList ;
168
168
update_kind = UpdateKind :: Other ;
169
169
}
170
+ key ! ( Enter ) => {
171
+ if let Some ( op) = view. async_ops_table . selected_item ( ) . upgrade ( ) {
172
+ if let Some ( task_id) = op. borrow ( ) . task_id ( ) {
173
+ let task = self
174
+ . tasks_list
175
+ . sorted_items
176
+ . iter ( )
177
+ . filter_map ( |i| i. upgrade ( ) )
178
+ . find ( |t| task_id == t. borrow ( ) . id ( ) ) ;
179
+
180
+ if let Some ( task) = task {
181
+ update_kind = UpdateKind :: SelectTask ( task. borrow ( ) . span_id ( ) ) ;
182
+ self . state = TaskInstance ( self :: task:: TaskView :: new (
183
+ task,
184
+ state. task_details_ref ( ) ,
185
+ ) ) ;
186
+ }
187
+ }
188
+ }
189
+ }
170
190
_ => {
171
191
// otherwise pass on to view
172
192
view. update_input ( event) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use std::{cell::RefCell, rc::Rc};
21
21
22
22
pub ( crate ) struct ResourceView {
23
23
resource : Rc < RefCell < Resource > > ,
24
- async_ops_table : TableListState < AsyncOpsTable , 9 > ,
24
+ pub ( crate ) async_ops_table : TableListState < AsyncOpsTable , 9 > ,
25
25
initial_render : bool ,
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments