Skip to content

Image Occlusion: Add an error message if no masks are set #19443

@david-allison

Description

@david-allison
  • Share an image to AnkiDroid as 'Image Occlusion'
  • Click 'save'

Expected

  • A user is informed that masks must be added before an IO note is saved

Actual

  • No error occurs, screen stays open

Code:

https://github.com/ankitects/anki/blob/dac26ce67147b261d79a56092320cc2f5af0d990/ts/routes/image-occlusion/%5B...imagePathOrNoteId%5D/%2Bpage.ts#L11-L13

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions