fix (client): do not refresh the page on showAttachedNotes (closes #10969)
This commit is contained in:
parent
7239d897ac
commit
44483bb9ae
1 changed files with 6 additions and 2 deletions
|
@ -48,6 +48,7 @@ import { i18n } from "@/i18n";
|
|||
import { me } from "@/me";
|
||||
import icon from "@/scripts/icon";
|
||||
import type { MenuItem } from "@/types/menu";
|
||||
import { useRouter } from "@/router";
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
@ -67,6 +68,8 @@ const emit = defineEmits<{
|
|||
(ev: "dragend"): void;
|
||||
}>();
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const isDragging = ref(false);
|
||||
|
||||
const title = computed(
|
||||
|
@ -107,10 +110,11 @@ function getMenu(): MenuItem[] {
|
|||
download: props.file.name,
|
||||
},
|
||||
{
|
||||
type: "a",
|
||||
href: `/my/drive/file/${props.file.id}/attached`,
|
||||
text: i18n.ts.showAttachedNotes,
|
||||
icon: `${icon("ph-paperclip")}`,
|
||||
action: () => {
|
||||
router.push(`/my/drive/file/${props.file.id}/attached`);
|
||||
},
|
||||
},
|
||||
null,
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue