Gib ein Uebergabepaket aus der bestaetigten Auswahl aus.
Die Dev-Umgebung soll die hierarchische Auswahl und das Paket pruefen koennen. Vorhandene Symbolaktionen der Inhaltszeilen bleiben im selben Stand. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
7626c56f3d
commit
27cde035e8
21 files changed
+2427
-54
No files matched your search
@@ -3,6 +3,7 @@ import { Link } from "react-router-dom";
|
||||
import { api, fetchFile, fetchPaperless } from "../api.js";
|
||||
import { contentSourceSymbol, contentSymbol } from "../content-symbol.mjs";
|
||||
import { MarkdownView } from "../markdown.jsx";
|
||||
import { IconButton, NavIcon } from "./icons.jsx";
|
||||
import { Modal } from "./Modal.jsx";
|
||||
import { ErrorNote } from "./widgets.jsx";
|
||||
|
||||
@@ -933,8 +934,8 @@ export function ContentBoard({
|
||||
<h3 className="chapter-title">{section.title}</h3>
|
||||
{canEdit && section.id !== "loose" ? (
|
||||
<span className="chapter-menu">
|
||||
<button type="button" className="quiet" onClick={() => renameChapter(section)}>Umbenennen</button>
|
||||
<button type="button" className="quiet" onClick={() => removeChapter(section)}>Löschen</button>
|
||||
<IconButton name="pencil" label={`Kapitel ${section.title} umbenennen`} onClick={() => renameChapter(section)} />
|
||||
<IconButton name="trash" label={`Kapitel ${section.title} löschen`} onClick={() => removeChapter(section)} />
|
||||
</span>
|
||||
) : null}
|
||||
{section.id !== "loose" ? (
|
||||
@@ -955,8 +956,8 @@ export function ContentBoard({
|
||||
) : null}
|
||||
{movable ? (
|
||||
<span className="chapter-move">
|
||||
<button type="button" className="quiet" aria-label={`${section.title} nach oben`} disabled={pending || chapters[0]?.id === section.id} onClick={() => moveChapter(section.id, -1)}>Nach oben</button>
|
||||
<button type="button" className="quiet" aria-label={`${section.title} nach unten`} disabled={pending || chapters[chapters.length - 1]?.id === section.id} onClick={() => moveChapter(section.id, 1)}>Nach unten</button>
|
||||
<IconButton name="up" label={`${section.title} nach oben`} disabled={pending || chapters[0]?.id === section.id} onClick={() => moveChapter(section.id, -1)} />
|
||||
<IconButton name="down" label={`${section.title} nach unten`} disabled={pending || chapters[chapters.length - 1]?.id === section.id} onClick={() => moveChapter(section.id, 1)} />
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
@@ -1026,7 +1027,7 @@ export function ContentBoard({
|
||||
<div className="preview-row__actions">
|
||||
{canEdit ? (
|
||||
<details className="row-menu">
|
||||
<summary>Bezug</summary>
|
||||
<summary aria-label="Bezug" title="Bezug"><NavIcon name="link" /></summary>
|
||||
<label>
|
||||
Bezug auf
|
||||
<select value="" disabled={pending} onChange={(event) => setBezug(element.id, event.target.value)}>
|
||||
@@ -1047,21 +1048,20 @@ export function ContentBoard({
|
||||
) : null}
|
||||
{canEdit ? (
|
||||
<details className="row-menu">
|
||||
<summary>Entfernen</summary>
|
||||
<summary aria-label="Entfernen" title="Entfernen"><NavIcon name="trash" /></summary>
|
||||
<button type="button" onClick={() => removeBinding(binding, false)}>Aus diesem Zusammenhang entfernen</button>
|
||||
{canDestroy ? <button type="button" className="danger" onClick={() => removeBinding(binding, true)}>Überall löschen</button> : null}
|
||||
</details>
|
||||
) : null}
|
||||
{canSort && custom ? (
|
||||
<details className="row-menu">
|
||||
<summary>Reihenfolge</summary>
|
||||
<button type="button" aria-label={`${element.title} nach oben`} disabled={pending || index === 0} onClick={() => move(binding.id, -1)}>Nach oben</button>
|
||||
<button type="button" aria-label={`${element.title} nach unten`} disabled={pending || index === section.items.length - 1} onClick={() => move(binding.id, 1)}>Nach unten</button>
|
||||
</details>
|
||||
<span className="chapter-move">
|
||||
<IconButton name="up" label={`${element.title} nach oben`} disabled={pending || index === 0} onClick={() => move(binding.id, -1)} />
|
||||
<IconButton name="down" label={`${element.title} nach unten`} disabled={pending || index === section.items.length - 1} onClick={() => move(binding.id, 1)} />
|
||||
</span>
|
||||
) : null}
|
||||
{canSort && chapters.length ? (
|
||||
<details className="row-menu">
|
||||
<summary>In Kapitel einordnen</summary>
|
||||
<summary aria-label="In Kapitel einordnen" title="In Kapitel einordnen"><NavIcon name="chapter" /></summary>
|
||||
<label>
|
||||
Kapitel
|
||||
<select value={binding.chapter_id || ""} disabled={pending} onChange={(event) => placeChapter(binding.id, event.target.value)}>
|
||||
|
||||
Reference in new issue
Block a user