mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 19:45:35 +01:00
Link editing.
This commit is contained in:
parent
0558563d35
commit
5f4b83b09c
13 changed files with 123 additions and 89 deletions
|
|
@ -7,7 +7,6 @@ import { useApi, useMessages, useModified } from '@/components/hooks';
|
|||
|
||||
export function LinkDeleteButton({
|
||||
linkId,
|
||||
websiteId,
|
||||
name,
|
||||
onSave,
|
||||
}: {
|
||||
|
|
@ -19,7 +18,7 @@ export function LinkDeleteButton({
|
|||
const { formatMessage, labels } = useMessages();
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, isPending, error } = useMutation({
|
||||
mutationFn: () => del(`/websites/${websiteId}/links/${linkId}`),
|
||||
mutationFn: () => del(`/links/${linkId}`),
|
||||
});
|
||||
const { touch } = useModified();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue