u
This commit is contained in:
@@ -13,7 +13,6 @@ import DeleteSweepOutlinedIcon from '@mui/icons-material/DeleteSweepOutlined';
|
||||
import { PanelTile } from 'dashgui/panels';
|
||||
import { LINE_COLUMNS, hasArticleLines } from './manifestConfig';
|
||||
import ManifestFormLine from './ManifestFormLine';
|
||||
import ArticleSearch from '../article/ArticleSearch';
|
||||
|
||||
class ManifestLines extends PureComponent {
|
||||
render() {
|
||||
@@ -23,7 +22,6 @@ class ManifestLines extends PureComponent {
|
||||
linesColor,
|
||||
onLineChange,
|
||||
onAddLine,
|
||||
onAddArticleLine,
|
||||
onRemoveLine,
|
||||
onRemoveAllLines,
|
||||
columns = LINE_COLUMNS,
|
||||
@@ -120,24 +118,13 @@ class ManifestLines extends PureComponent {
|
||||
</Table>
|
||||
</TableContainer>
|
||||
<Box sx={{ display: 'flex', gap: 1.5, alignItems: 'center', flexWrap: 'wrap' }}>
|
||||
{onAddArticleLine && (
|
||||
<ArticleSearch
|
||||
size="small"
|
||||
clearOnSelect
|
||||
allowParent={false}
|
||||
placeholder="Artikel suchen und hinzufügen…"
|
||||
disabled={saving}
|
||||
onSelect={onAddArticleLine}
|
||||
sx={{ minWidth: 260, flex: 1, maxWidth: 440 }}
|
||||
/>
|
||||
)}
|
||||
<Button
|
||||
size="small"
|
||||
startIcon={<AddIcon />}
|
||||
disabled={saving}
|
||||
onClick={onAddLine}
|
||||
>
|
||||
{onAddArticleLine ? 'Leere Zeile' : 'Zeile hinzufügen'}
|
||||
Zeile
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
|
||||
Reference in New Issue
Block a user