File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ async function callApi(
67
67
await delay ( RETRY_DELAY_MS ) ;
68
68
return await callApi ( endpoint , args , numRetriesOnFail - 1 ) ;
69
69
}
70
- console . log ( "json = " , json ) ;
71
70
if ( json == null ) {
72
71
throw Error ( "timeout -- try again later" ) ;
73
72
}
Original file line number Diff line number Diff line change @@ -533,6 +533,14 @@ export class TaskActions extends Actions<TaskState> {
533
533
this . set_local_task_state ( task_id , { editing_desc : false } ) ;
534
534
}
535
535
536
+ isEditing = ( ) => {
537
+ const task_id = this . getFrameData ( "current_task_id" ) ;
538
+ return ! ! this . getFrameData ( "local_task_state" ) ?. getIn ( [
539
+ task_id ,
540
+ "editing_desc" ,
541
+ ] ) ;
542
+ } ;
543
+
536
544
// null=unselect all.
537
545
public edit_desc ( task_id : string | undefined | null ) : void {
538
546
// close any that were currently in edit state before opening new one
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ function is_sortable(actions): boolean {
18
18
}
19
19
20
20
export function create_key_handler ( actions ) : ( any ) => void {
21
- return function ( evt ) {
21
+ return ( evt ) => {
22
+ if ( actions . isEditing ( ) ) {
23
+ return ;
24
+ }
22
25
const read_only = ! ! actions . store . get ( "read_only" ) ;
23
26
const mod = evt . ctrlKey || evt . metaKey || evt . altKey || evt . shiftKey ;
24
27
You can’t perform that action at this time.
0 commit comments