mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 18:15:35 +01:00
Disable website select for saved report. Fix delete website routing
This commit is contained in:
parent
91e3dff7f5
commit
5ae04291af
6 changed files with 31 additions and 22 deletions
|
|
@ -10,7 +10,7 @@ export function RetentionParameters() {
|
|||
const { report, runReport, isRunning, updateReport } = useContext(ReportContext);
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
const { parameters } = report || {};
|
||||
const { id, parameters } = report || {};
|
||||
const { websiteId, dateRange } = parameters || {};
|
||||
const { startDate } = dateRange || {};
|
||||
const queryDisabled = !websiteId || !dateRange;
|
||||
|
|
@ -30,7 +30,7 @@ export function RetentionParameters() {
|
|||
|
||||
return (
|
||||
<Form values={parameters} onSubmit={handleSubmit} preventSubmit={true}>
|
||||
<BaseParameters showDateSelect={false} />
|
||||
<BaseParameters showDateSelect={false} allowWebsiteSelect={!id} />
|
||||
<FormRow label={formatMessage(labels.date)}>
|
||||
<MonthSelect date={startDate} onChange={handleDateChange} />
|
||||
</FormRow>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue