mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Pixel editing.
This commit is contained in:
parent
eabdd18604
commit
d130242a0a
23 changed files with 72 additions and 49 deletions
|
|
@ -7,19 +7,17 @@ import { useApi, useMessages, useModified } from '@/components/hooks';
|
|||
|
||||
export function PixelDeleteButton({
|
||||
pixelId,
|
||||
websiteId,
|
||||
name,
|
||||
onSave,
|
||||
}: {
|
||||
pixelId: string;
|
||||
websiteId: string;
|
||||
name: string;
|
||||
onSave?: () => void;
|
||||
}) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, isPending, error } = useMutation({
|
||||
mutationFn: () => del(`/websites/${websiteId}/pixels/${pixelId}`),
|
||||
mutationFn: () => del(`/pixels/${pixelId}`),
|
||||
});
|
||||
const { touch } = useModified();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue