This commit is contained in:
seb
2026-10-20 21:28:36 +02:00
parent 65c908f44e
commit 9bc6d55e85
4 changed files with 1 additions and 56 deletions

View File

@@ -236,7 +236,7 @@ class CompanySetupDialog extends Component {
await bootstrapAuthMe(); await bootstrapAuthMe();
await companyAutomat.actions.load(); await companyAutomat.actions.load();
await numberAutomat.actions.reload().catch(() => {}); await numberAutomat.actions.reload().catch(() => { });
} catch (err) { } catch (err) {
this.setState({ error: backendErrorFrom(err) }); this.setState({ error: backendErrorFrom(err) });
} finally { } finally {
@@ -286,22 +286,7 @@ class CompanySetupDialog extends Component {
maxWidth={hasCompanies ? 'sm' : 'md'} maxWidth={hasCompanies ? 'sm' : 'md'}
fullWidth fullWidth
> >
<DialogTitle sx={{ pb: 1 }}>
{loading
? 'Unternehmen'
: hasCompanies
? 'Unternehmen auswählen'
: 'Willkommen bei Dash'}
</DialogTitle>
<DialogContent> <DialogContent>
{!loading ? (
<Typography variant="body2" color="text.secondary" sx={{ mb: 2.5 }}>
{hasCompanies
? 'Wählen Sie ein bestehendes Unternehmen oder legen Sie ein neues an.'
: 'Legen Sie Ihr erstes Unternehmen an und wählen Sie das Format für Ihre Nummernkreise.'}
</Typography>
) : null}
{error ? ( {error ? (
isBackendFailure(error) ? ( isBackendFailure(error) ? (
<BackendError error={error} sx={{ mb: 2 }} /> <BackendError error={error} sx={{ mb: 2 }} />
@@ -410,13 +395,6 @@ class CompanySetupDialog extends Component {
{/* Nummernkreise Section (when no company was created yet or creating new) */} {/* Nummernkreise Section (when no company was created yet or creating new) */}
<Box sx={{ pt: 1 }}> <Box sx={{ pt: 1 }}>
<Typography variant="subtitle2" sx={{ fontWeight: 600, mb: 0.5 }}>
Nummernkreise & Belegnummern
</Typography>
<Typography variant="body2" color="text.secondary" sx={{ mb: 1.5 }}>
Wählen Sie eine Voreinstellung oder passen Sie Präfix, Stellen und Startnummer an:
</Typography>
<Stack direction="row" spacing={1} useFlexGap sx={{ flexWrap: 'wrap', mb: 1.5 }}> <Stack direction="row" spacing={1} useFlexGap sx={{ flexWrap: 'wrap', mb: 1.5 }}>
{PRESETS.map((p) => { {PRESETS.map((p) => {
const isSelected = selectedPreset === p.id; const isSelected = selectedPreset === p.id;

View File

@@ -6,7 +6,6 @@ import ListItemButton from '@mui/material/ListItemButton';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Skeleton from '@mui/material/Skeleton'; import Skeleton from '@mui/material/Skeleton';
import Tooltip from '@mui/material/Tooltip'; import Tooltip from '@mui/material/Tooltip';
import RefreshIcon from '@mui/icons-material/Refresh';
import ViewModuleIcon from '@mui/icons-material/ViewModule'; import ViewModuleIcon from '@mui/icons-material/ViewModule';
import Chip from '@mui/material/Chip'; import Chip from '@mui/material/Chip';
import SingleLineTextEdit from 'dashgui/SingleLineTextEdit'; import SingleLineTextEdit from 'dashgui/SingleLineTextEdit';
@@ -273,16 +272,6 @@ class ArticleHistorySearchField extends PureComponent {
placeholder="Artikel-Nr., Name, Änderung oder Benutzer suchen…" placeholder="Artikel-Nr., Name, Änderung oder Benutzer suchen…"
onChange={(next) => articleHistoryAutomat.actions.filter(next)} onChange={(next) => articleHistoryAutomat.actions.filter(next)}
/> />
<Button
size="small"
variant="outlined"
startIcon={<RefreshIcon />}
onClick={onReload}
disabled={loading}
sx={{ height: 40, px: 2, whiteSpace: 'nowrap' }}
>
Aktualisieren
</Button>
</Box> </Box>
{/* Filter Bar: Negativeseek (-1 Month, -1 Year, Reset) */} {/* Filter Bar: Negativeseek (-1 Month, -1 Year, Reset) */}

View File

@@ -6,7 +6,6 @@ import ListItemButton from '@mui/material/ListItemButton';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Skeleton from '@mui/material/Skeleton'; import Skeleton from '@mui/material/Skeleton';
import Tooltip from '@mui/material/Tooltip'; import Tooltip from '@mui/material/Tooltip';
import RefreshIcon from '@mui/icons-material/Refresh';
import ViewModuleIcon from '@mui/icons-material/ViewModule'; import ViewModuleIcon from '@mui/icons-material/ViewModule';
import Chip from '@mui/material/Chip'; import Chip from '@mui/material/Chip';
import SingleLineTextEdit from 'dashgui/SingleLineTextEdit'; import SingleLineTextEdit from 'dashgui/SingleLineTextEdit';
@@ -285,16 +284,6 @@ class GlobalHistorySearchField extends PureComponent {
placeholder="Referenz, Typ, Meldung oder Benutzer suchen…" placeholder="Referenz, Typ, Meldung oder Benutzer suchen…"
onChange={(next) => globalHistoryAutomat.actions.filter(next)} onChange={(next) => globalHistoryAutomat.actions.filter(next)}
/> />
<Button
size="small"
variant="outlined"
startIcon={<RefreshIcon />}
onClick={onReload}
disabled={loading}
sx={{ height: 40, px: 2, whiteSpace: 'nowrap' }}
>
Aktualisieren
</Button>
</Box> </Box>
{/* Filter Bar: Negativeseek (-1 Month, -1 Year, Reset) */} {/* Filter Bar: Negativeseek (-1 Month, -1 Year, Reset) */}

View File

@@ -5,7 +5,6 @@ import CircularProgress from '@mui/material/CircularProgress';
import ListItemButton from '@mui/material/ListItemButton'; import ListItemButton from '@mui/material/ListItemButton';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Skeleton from '@mui/material/Skeleton'; import Skeleton from '@mui/material/Skeleton';
import RefreshIcon from '@mui/icons-material/Refresh';
import ViewModuleIcon from '@mui/icons-material/ViewModule'; import ViewModuleIcon from '@mui/icons-material/ViewModule';
import Chip from '@mui/material/Chip'; import Chip from '@mui/material/Chip';
import SingleLineTextEdit from 'dashgui/SingleLineTextEdit'; import SingleLineTextEdit from 'dashgui/SingleLineTextEdit';
@@ -327,16 +326,6 @@ class LedgerHistorySearchField extends PureComponent {
placeholder="Artikel-Nr., Buchungstext, Typ oder Benutzer suchen…" placeholder="Artikel-Nr., Buchungstext, Typ oder Benutzer suchen…"
onChange={(next) => ledgerHistoryAutomat.actions.filter(next)} onChange={(next) => ledgerHistoryAutomat.actions.filter(next)}
/> />
<Button
size="small"
variant="outlined"
startIcon={<RefreshIcon />}
onClick={onReload}
disabled={loading}
sx={{ height: 40, px: 2, whiteSpace: 'nowrap' }}
>
Aktualisieren
</Button>
</Box> </Box>
{/* Filter Bar: Negativeseek (-1 Month, -1 Year, Reset) */} {/* Filter Bar: Negativeseek (-1 Month, -1 Year, Reset) */}