zotero/scss/components
abaevbog 6787dcd596
Citation dialog: do not wait for cited items to load (#5127)
Before making the dialog interactable.

Initialize loading cited items via io.getItems when the dialog appears.
Once they are loaded, itemsList is refreshed to include
cited matching items and all subsequent searches will include
them too. During the refresh immediately after cited items load,
try to preserve focused/selected state of items.

Added IOManager.preInit that is ran as soon as the dialog
is loaded. Move accept/cancel initialization there.
IOManager.init runs at the very end of onLoad because
it relies on most data and layouts being loaded,
It means if there is some delay or error during loading,
the dialog cannot be closed. To avoid it, setup
cancel/accept buttons separately in the beginning.

Also, minor refactoring of SearchHandler to handle
refreshing of cited items separately from selected and
open items.

Fixes: #5121
2025-03-20 23:42:00 -04:00
..
_advancedSearch.scss Update Advanced Search styles (#4464) 2024-07-31 01:35:48 -04:00
_annotation.scss changed all font-weight: bold/590 to 600 2024-01-24 23:32:15 -05:00
_autosuggest.scss Fix autosuggestion background color in dark mode (#2276) 2021-12-20 00:17:57 -05:00
_banners.scss Fix huge buttons in banner on Linux 2025-03-12 13:45:00 +01:00
_button.scss Make macOS control normalization into a mixin (#4464) 2024-07-31 01:35:31 -04:00
_citationDialog.scss Citation dialog: do not wait for cited items to load (#5127) 2025-03-20 23:42:00 -04:00
_citationExplorer.scss Adds a Citation Explorer dialog for document integration (#3468) 2025-03-10 22:40:43 -04:00
_clicky.scss Fix swapped creator-field-mode icons 2024-10-30 21:42:28 -04:00
_collection-tree.scss Adds a Citation Explorer dialog for document integration (#3468) 2025-03-10 22:40:43 -04:00
_contextPane.scss Prevent stacked context pane from expanding over toolbar/titlebar 2025-03-19 15:20:25 -04:00
_createParent.scss Fix sizing problems in Create Parent dialog 2024-06-08 04:42:14 -04:00
_csledit.scss Improve style editor dialog 2024-01-24 23:32:19 -05:00
_dictionaryManager.scss Fix Dictionary window missing a scrollbar. Closes #3960 2024-04-11 10:53:54 +03:00
_editable.scss Fix overflow issues in React tags box 2019-11-13 05:31:12 -05:00
_editBibliographyDialog.scss fx115: Fix Edit Bibliography dialog 2024-04-13 00:29:36 -04:00
_exportOptions.scss fx-compat: Fix style clash on disabled Export checkbox 2022-08-27 22:33:45 -04:00
_feedSettings.scss Feed settings: Make disclosure triangle focusable, extract SCSS (#4513) 2024-08-08 00:22:09 -04:00
_icons.scss Remove a bunch of unused PNG icons (#4071) 2024-04-30 02:13:17 -04:00
_import-wizard.scss fx128: -moz-nativehyperlinktext -> LinkText (#4902) 2024-12-14 01:16:03 -05:00
_item-tree.scss Restore attachment download progress spinner in item row (#5124) 2025-03-18 14:10:24 -04:00
_listheader.scss Unify richlistitem styling rules (#4511) 2024-08-09 15:57:56 +03:00
_locateManager.scss Improve layout of the buttons in the locate manager (#5139) 2025-03-20 17:22:07 -04:00
_longTagFixer.scss Fix alignment of tag rows in long tag fixer 2025-01-22 03:09:31 -05:00
_mainWindow.scss Fix item pane width jumping in stacked mode (#4757) 2024-10-16 00:34:12 -04:00
_menu.scss Fix a couple of issues related to dark mode icons (#4655) 2024-09-01 15:48:36 -04:00
_newCollectionDialog.scss Implement new New Collection dialog with parent menu 2024-01-24 23:32:12 -05:00
_notesList.scss Use borders with color-*-on-*, not outlines 2024-01-24 23:32:00 -05:00
_progressMeter.scss Macos integration progress bar (#5016) 2025-02-12 08:43:11 +02:00
_publications-dialog.scss fx115: Fix wizards 2024-03-31 12:39:12 +02:00
_reader.scss vpat 66-68: fix focus within tagsBox popup (#4231) 2024-07-16 02:35:53 -04:00
_richlistbox.scss Unify richlistitem styling rules (#4511) 2024-08-09 15:57:56 +03:00
_rtfScan.scss Improve RTF Scan UI 2024-07-11 01:46:16 -04:00
_runJS.scss Fix dialog background 2024-01-24 23:32:19 -05:00
_search.scss Checkbox-and-radio-redesign-on-Windows (#4609) 2024-08-30 07:20:52 -04:00
_selectItemsDialog.scss vpat 16: context menu as a drag-drop alternative to change parent item of attachment/note (#4423) 2024-10-10 16:56:34 -04:00
_spinner.scss Use redesign loading icon for sync spinner 2024-01-24 23:31:50 -05:00
_splitter.scss Fix stacked mode layout when toggle item pane 2024-01-24 23:32:23 -05:00
_syncButtonTooltip.scss Show invalid-data warning in sync button tooltip for group libraries 2021-02-09 16:36:06 -05:00
_tabBar.scss Fix tab bar scroll arrow button click not working (#4529) 2024-08-08 04:19:41 -04:00
_tabsMenu.scss remove unnecessarry scrollbar in tabs menu on mac (#4123) 2024-05-15 05:42:06 -04:00
_tag-manager.scss changed all font-weight: bold/590 to 600 2024-01-24 23:32:15 -05:00
_tagSelector.scss Apply tag text color to ellipsis (#4536) 2024-08-08 22:54:10 -04:00
_textLink.scss fx128: -moz-nativehyperlinktext -> LinkText (#4902) 2024-12-14 01:16:03 -05:00
_titleBar.scss Fix titlebar button breakage on macOS (6f8a1095) 2024-04-05 14:18:38 +03:00
_toolbar.scss Fix main window layout and window resizing (#4676) 2024-09-12 06:26:31 -04:00
_toolbarbutton.scss fx115: fix toolbar dropmarker always visible 2024-03-30 00:58:58 -04:00
_virtualized-table.scss Redesigned citation dialog (#4872) 2025-03-10 22:40:43 -04:00
_window.scss fx128: dialog window background (#4921) 2024-12-14 01:16:06 -05:00