Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6973d036

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

Selected tags highlighting

On click in the middle panel or on click on highlight buttons in the right panel

Zobrazit rozdíly:

webapp/contexts/AnnotationContext.tsx
86 86
        subtagId: string | null,
87 87
        instanceID: string | null
88 88
    ) => void;
89

  
90
    selectedInstanceId: string | null;
91
    setSelectedInstanceId: (newId: string | null) => void;
92

  
93
    selectedOccurrenceId: string | null;
94
    setSelectedOccurrenceId: (newId: string | null) => void;
89 95
}
90 96

  
91 97
/**
......
178 184
    markSelectedText: () => {
179 185
        return;
180 186
    },
187

  
188
    selectedInstanceId: null,
189
    setSelectedInstanceId: (newId: string | null) => {
190
        return;
191
    },
192

  
193
    selectedOccurrenceId: null,
194
    setSelectedOccurrenceId: (newId: string | null) => {
195
        return;
196
    },
181 197
});
182 198

  
183 199
/**
......
197 213
    const [tags, setTags] = useState<TagInstanceInfo[] | null>(null);
198 214

  
199 215
    const [mappedTags, setMappedTags] = useState<Tag[] | null>(null);
216
    const [selectedInstanceId, setSelectedInstanceId] = useState<string | null>(null);
217
    const [selectedOccurrenceId, setSelectedOccurrenceId] = useState<string | null>(null);
200 218

  
201 219
    const [submitting, setSubmitting] = useState(false);
202 220

  
......
405 423
                annotation,
406 424
                mappedTags,
407 425
                markSelectedText,
426
                selectedInstanceId,
427
                setSelectedInstanceId,
428
                selectedOccurrenceId,
429
                setSelectedOccurrenceId,
408 430
            }}
409 431
        >
410 432
            {props.children}

Také k dispozici: Unified diff