Lines Matching refs:currentSelection
474 state.currentSelection = {
501 if (state.currentSelection === null ||
502 state.currentSelection.kind !== 'AREA') {
510 areaId: state.currentSelection.areaId,
514 state.currentSelection.noteId = id;
518 const selection = state.currentSelection;
599 if (state.currentSelection === null) return;
600 if (state.currentSelection.kind === 'NOTE' &&
601 state.currentSelection.id === args.id) {
602 state.currentSelection = null;
604 state.currentSelection.kind === 'AREA' &&
605 state.currentSelection.noteId === args.id) {
606 state.currentSelection.noteId = undefined;
611 state.currentSelection = {
622 state.currentSelection = {
634 state.currentSelection = {
654 state.currentSelection = {
684 state.currentSelection = {
694 state.currentSelection = {
702 state.currentSelection = null;
758 state.currentSelection = {kind: 'AREA', areaId};
773 state.currentSelection = {
782 const selection = state.currentSelection;