Damien Elmes
248373ef30
undoing of notetype templates
2021-04-30 17:30:48 +10:00
Damien Elmes
9a46ad6352
undoing of notetype fields
...
- fix stale cache issue
- update add cards screen in response to op changes
2021-04-30 17:15:59 +10:00
Damien Elmes
b9417fc583
notetype rename+options undo
2021-04-30 16:09:44 +10:00
Damien Elmes
394fe86f8f
notetype removal undoable
2021-04-30 16:01:47 +10:00
Damien Elmes
ea758f0092
update GUI to allow notetype addition undo
...
- backend now updates current notetype as part of addition
- frontend no longer implicitly adds, so we can assign a new name and
add in a single operation
2021-04-30 15:58:08 +10:00
Damien Elmes
2ff8c20686
update backend to support undoing of notetype changes
2021-04-30 12:54:59 +10:00
Damien Elmes
9d604f1ad0
make it more ergonomic to search directly via nodes in Rust
2021-04-30 11:37:55 +10:00
Damien Elmes
2902b64e82
move note/card removal for notetype out of storage layer
2021-04-29 19:44:09 +10:00
Damien Elmes
57eab0e33d
make config prefix removal undoable
2021-04-29 19:16:02 +10:00
Damien Elmes
610f0b5254
use aux var when retrieving last deck for notetype
...
The adding case was already covered by defaults_for_adding(), but we
the code was using the old variable when adding new cards to an existing
note.
2021-04-29 19:15:27 +10:00
Damien Elmes
b160c2d85c
move pub functions to top of notetype/mod.rs
2021-04-29 15:32:59 +10:00
Damien Elmes
86cf8949ea
move pub functions to top of notes/mod.rs
2021-04-29 14:08:15 +10:00
Damien Elmes
07b5c35e90
confirm deletion is requiring a full sync
2021-04-28 22:21:16 +10:00
Damien Elmes
b22e851137
add some unit tests to deck config updating
2021-04-28 22:00:39 +10:00
Damien Elmes
a95cbb8515
DeckConfId -> DeckConfigId
2021-04-28 21:09:26 +10:00
Damien Elmes
1df86b28e8
sort deck on config update; fix id not being updated after deletion
2021-04-28 21:08:09 +10:00
Damien Elmes
92e4de16cf
report pinned package issues upstream
2021-04-27 23:11:22 +10:00
Damien Elmes
cf2613e869
update Rust deps
...
- tokio 1.0
- updated reqwest, thanks to Rumo
- other minor dep updates
the reqwest build file has been split into two, as it was awkward
to manually update the combined file, and the platform gate is now
on the target in rslib/
2021-04-27 22:18:12 +10:00
Damien Elmes
a639048a6b
i18n deckoptions; move some options into separate 'advanced' section
2021-04-26 23:34:58 +10:00
Damien Elmes
5c4434312f
Merge pull request #1156 from RumovZ/trigger-dec
...
Add separate no_arg_trigger decorator
2021-04-26 20:22:07 +10:00
Damien Elmes
8475e7829b
defer bounds checking in SpinBox to focus loss
...
The previous behaviour was preventing a backspace to remove the
current text when a minimum of 1 or greater was supplied
2021-04-26 20:17:48 +10:00
RumovZ
abd02d7891
Add separate no_arg_trigger decorator
2021-04-26 08:46:08 +02:00
Damien Elmes
f77983fc9f
Merge pull request #1154 from RumovZ/fix-skip-dec
...
Fix skip_if_selection_is_empty() for triggers
2021-04-26 09:21:42 +10:00
Damien Elmes
ab666612f7
Merge pull request #1153 from hgiesel/goodbyewebcomp
...
Make EditorToolbar more similar to DeckOptions
2021-04-26 09:20:06 +10:00
RumovZ
594fe303da
Remove some unnecessary lambdas
2021-04-25 19:51:57 +02:00
RumovZ
9900f73cee
Fix skip_if_selection_is_empty() for triggers
...
It seems to be enough if one decorator calls pyqtSlot(), but to avoid
problems in the future, let's have all decorators do that.
2021-04-25 19:50:56 +02:00
Henrik Giesel
268adf1d03
Move EditorToolbar API into EditorToolbar.svelte
2021-04-25 19:15:00 +02:00
Henrik Giesel
f5fba15435
Initialize editor toolbar via function, not web component
2021-04-25 18:32:01 +02:00
Damien Elmes
09629e4e4a
add translations for deck option warnings
...
+ cap maximum recommended review limit to 9999, since we don't allow
the user to set it higher
2021-04-25 23:06:35 +10:00
Damien Elmes
f6a1a35113
update translations
2021-04-25 22:06:05 +10:00
Damien Elmes
4ab2d0b4a9
subLabel->tooltip
2021-04-25 21:37:21 +10:00
Damien Elmes
ab00da0593
slide warnings in/out
2021-04-25 21:10:53 +10:00
Damien Elmes
b7b329cf90
Merge pull request #1151 from RumovZ/no-sel-dec
...
Fix some problems with browser actions while selection is empty
2021-04-25 20:48:40 +10:00
Damien Elmes
eb3f3ddd45
enable the new deck options by default
...
- The old options are still available with a shift+click
- Translations still need updating
- See b7747b6a38
for some examples
of extending the screen in an add-on
2021-04-25 19:58:58 +10:00
Damien Elmes
56800737e6
use lodash instead of json in RevertButton
2021-04-25 19:34:07 +10:00
Damien Elmes
a1ce048ed5
fix error when user cancels out of set due date/reposition
2021-04-25 19:33:25 +10:00
Damien Elmes
b7747b6a38
experimental support for extending add-ons screen with Svelte
2021-04-25 19:33:18 +10:00
Damien Elmes
b485b8cbb9
deckconfig->deckoptions
2021-04-25 19:02:30 +10:00
Damien Elmes
d6df6c0f89
RevertIcon->RevertButton
2021-04-25 19:02:30 +10:00
RumovZ
b1392980f5
Skip some browser methods if selection is empty
...
This was handled inconsistently before:
* Select Notes would throw a search error.
* Set Due Date would throw an exception.
* Dialogs with no effect would open.
* No-ops would be pushed to the undo queue.
2021-04-25 08:47:15 +02:00
RumovZ
458d891d28
Add dec to make methods no-op if no selection
2021-04-25 08:36:22 +02:00
Damien Elmes
e2a4d6041c
basic support for add-ons in new deck config screen
...
- expose the data as a writable store
- currently only supports raw HTML; example to come
- fix changes not marking a deck config as modified
- the data is currently packed into the deckconfig object, but we
may move these to a separate store in the collection config in the
future, like is done with decks/notetypes
2021-04-24 11:08:01 +10:00
Damien Elmes
c71b684a94
Merge pull request #1150 from hgiesel/notetypechoose
...
Editor Toolbar cleanup
2021-04-24 11:04:24 +10:00
Henrik Giesel
5709183fe1
Prefer slicing and splicing
2021-04-24 01:48:22 +02:00
Henrik Giesel
452fdf05af
Remove unused import
2021-04-24 01:32:02 +02:00
Henrik Giesel
af5d7cc6a3
Fix typing typo
2021-04-24 01:15:16 +02:00
Henrik Giesel
53bb8c7b28
Add addMenu and updateMenu, avoid using {buttons,menus}Promise outside of class
2021-04-24 01:08:55 +02:00
Henrik Giesel
1f05ebbcf7
Remove addcards toolbar again for now
2021-04-24 00:10:45 +02:00
Henrik Giesel
9f7a187d4a
Add mostly working addcards topbar
2021-04-24 00:00:32 +02:00
Henrik Giesel
baeaa29dae
Simplify Handling of margins and padding of ButtonGroup & ButtonDropdown
2021-04-23 22:22:53 +02:00