Web: Lagerort-Inhalt ansehen + von dort einlagern

Der Lagerort-QR (/l/<code>) zeigt jetzt, was am Ort (inkl. Unterorte) liegt -
Artikel mit Bestand, jeweils verlinkt - statt nur den Namen. "Hier einlagern"
springt ins Einlagern mit vorbelegtem Lagerort (?location=). In der Lagerorte-
Verwaltung fuehrt ein neues Lupensymbol zur Inhaltsansicht.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-29 13:37:34 +02:00
parent 85ab62359a
commit d448754d2a
4 changed files with 71 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
import { useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { api } from "../api";
import { useConfirm } from "../confirm";
import Icon from "../components/Icon";
@@ -188,6 +189,9 @@ export default function Locations() {
)}
</span>
<span style={{ display: "flex", alignItems: "center", gap: 8 }}>
<Link className="btn-icon" to={`/l/${l.id}`} title="Inhalt ansehen">
<Icon name="search" size={16} />
</Link>
<QrImg text={`${window.location.origin}/l/${l.id}`} size={44} />
<button className="btn-icon" onClick={() => startEdit(l)} title="Bearbeiten">
<Icon name="edit" size={16} />