2525 @proceed =" deleteVersion()"
2626 />
2727
28- <Admonition v-if =" !hideVersionsAdmonition && currentMember" type =" info" class =" mb-4" >
29- Creating and editing project versions can now be done directly from the
30- <NuxtLink to =" settings/versions" class =" font-medium text-blue hover:underline"
31- >project settings</NuxtLink
32- >.
33- <template #actions >
34- <div class =" flex gap-2" >
35- <ButtonStyled color =" blue" >
36- <button
37- aria-label =" Project Settings"
38- class =" !shadow-none"
39- @click =" () => router.push('settings/versions')"
40- >
41- <SettingsIcon />
42- Edit versions
43- </button >
44- </ButtonStyled >
45- <ButtonStyled type =" transparent" >
46- <button
47- aria-label =" Dismiss"
48- class =" !shadow-none"
49- @click =" () => (hideVersionsAdmonition = true)"
50- >
51- Dismiss
52- </button >
53- </ButtonStyled >
54- </div >
55- </template >
56- </Admonition >
57-
5828 <ProjectPageVersions
5929 v-if =" versions?.length"
6030 :project =" project"
@@ -283,13 +253,11 @@ import {
283253 LinkIcon ,
284254 MoreVerticalIcon ,
285255 ReportIcon ,
286- SettingsIcon ,
287256 ShareIcon ,
288257 SpinnerIcon ,
289258 TrashIcon ,
290259} from ' @modrinth/assets'
291260import {
292- Admonition ,
293261 ButtonStyled ,
294262 ConfirmModal ,
295263 injectModrinthClient ,
@@ -298,7 +266,6 @@ import {
298266 OverflowMenu ,
299267 ProjectPageVersions ,
300268} from ' @modrinth/ui'
301- import { useLocalStorage } from ' @vueuse/core'
302269import { onMounted , useTemplateRef } from ' vue'
303270
304271import CreateProjectVersionModal from ' ~/components/ui/create-project-version/CreateProjectVersionModal.vue'
@@ -338,15 +305,8 @@ const handleOpenEditVersionModal = (versionId, projectId, stageId) => {
338305 createProjectVersionModal .value ? .openEditVersionModal (versionId, projectId, stageId)
339306}
340307
341- const hideVersionsAdmonition = useLocalStorage (
342- ' hideVersionsHasMovedAdmonition' ,
343- ! versions .value ? .length ,
344- )
345-
346308const emit = defineEmits ([' onDownload' , ' deleteVersion' ])
347309
348- const router = useNativeRouter ()
349-
350310const baseDropdownId = useId ()
351311
352312function getPrimaryFile (version ) {
0 commit comments