fix(editor): an explicit discard of the citations draft says nothing
This commit is contained in:
1 parent
82bdf8de71
commit
7a5684aace
4 files changed
+69
-9
No files matched your search
@@ -17,8 +17,11 @@ import { CITATIONS_TITLE_ID } from './useCitationsPanel'
|
||||
export interface CitationsDialogProps {
|
||||
/** The family or finding node whose citations it shows; null while it is closed. */
|
||||
citedBy: ElementKey | null
|
||||
/** A close: a user one (✕, Escape, the backdrop) is refused by a draft; forced goes. */
|
||||
onClose: (forced?: boolean) => boolean
|
||||
/**
|
||||
* A close: a user one (✕, Escape, the backdrop) is refused by a draft; forced goes;
|
||||
* `discarded` after the user's « Abandonner » (nothing said).
|
||||
*/
|
||||
onClose: (forced?: boolean, discarded?: boolean) => boolean
|
||||
/** « Tout afficher dans l'onglet Références ». */
|
||||
onShowAll: () => void
|
||||
/** « Aller à » a citing finding or a reference. */
|
||||
@@ -67,7 +70,7 @@ function EditBody({ citedBy, mode, props }: BodyProps) {
|
||||
guards={props.guards}
|
||||
references={props.references}
|
||||
onDone={mode.done}
|
||||
onDiscardClose={() => props.onClose(true)}
|
||||
onDiscardClose={() => props.onClose(true, true)}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user