• Robert Knight's avatar
    Disable import button if necessary data is not available · c2d543aa
    Robert Knight authored
    Prevent the user from importing annotations until we have:
    
     - A group to import into
     - A set of existing annotations to match against
     - Document metadata to use for the new annotations
    
    I considered replacing the whole dialog with a `LoadingSpinner` until these
    conditions are met, like the Export dialog does, but it makes for a less jumpy
    transition when eg. switching groups if we just disable the button.
    c2d543aa
ImportAnnotations.tsx 6.62 KB