Anki/proto/anki/links.proto
RumovZ f1488b5983
Card type error (#1749)
* TemplateSaveError -> CardTypeError

* Don't show success tooltip if export fails

* Attach help page to error

Show help link if export fails due to card type error.

* Add type (dae)

* Add shared show_exception() (dae)

- Use a shared routine for printing standard backend errors, so that
we can take advantage of the help links in eg. the card layout screen
as well.
- The truthiness check on help in showInfo() would have ignored the
enum 0 value.
- Close the exporting dialog on a documented failure as well

* Fix local variable help_page
2022-03-28 22:17:50 +10:00

41 lines
966 B
Protocol Buffer

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
syntax = "proto3";
package anki.links;
import "anki/generic.proto";
service LinksService {
rpc HelpPageLink(HelpPageLinkRequest) returns (generic.String);
}
message HelpPageLinkRequest {
enum HelpPage {
NOTE_TYPE = 0;
BROWSING = 1;
BROWSING_FIND_AND_REPLACE = 2;
BROWSING_NOTES_MENU = 3;
KEYBOARD_SHORTCUTS = 4;
EDITING = 5;
ADDING_CARD_AND_NOTE = 6;
ADDING_A_NOTE_TYPE = 7;
LATEX = 8;
PREFERENCES = 9;
INDEX = 10;
TEMPLATES = 11;
FILTERED_DECK = 12;
IMPORTING = 13;
CUSTOMIZING_FIELDS = 14;
DECK_OPTIONS = 15;
EDITING_FEATURES = 16;
FULL_SCREEN_ISSUE = 17;
CARD_TYPE_DUPLICATE = 18;
CARD_TYPE_NO_FRONT_FIELD = 19;
CARD_TYPE_MISSING_CLOZE = 20;
CARD_TYPE_EXTRANEOUS_CLOZE = 21;
CARD_TYPE_TEMPLATE_ERROR = 22;
}
HelpPage page = 1;
}