You've already forked AstralRinth
forked from didirus/AstralRinth
Update breadcrumbs on profile name update (#643)
* Update breadcrumbs on profile name update * Fix formatting
This commit is contained in:
@@ -561,8 +561,11 @@ import { get_game_versions, get_loaders } from '@/helpers/tags.js'
|
|||||||
import { handleError } from '@/store/notifications.js'
|
import { handleError } from '@/store/notifications.js'
|
||||||
import { mixpanel_track } from '@/helpers/mixpanel'
|
import { mixpanel_track } from '@/helpers/mixpanel'
|
||||||
import { useTheming } from '@/store/theme.js'
|
import { useTheming } from '@/store/theme.js'
|
||||||
|
import { useBreadcrumbs } from '@/store/breadcrumbs'
|
||||||
import ModpackVersionModal from '@/components/ui/ModpackVersionModal.vue'
|
import ModpackVersionModal from '@/components/ui/ModpackVersionModal.vue'
|
||||||
|
|
||||||
|
const breadcrumbs = useBreadcrumbs()
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -753,6 +756,9 @@ const editProfileObject = computed(() => {
|
|||||||
if (unlinkModpack.value) {
|
if (unlinkModpack.value) {
|
||||||
editProfile.metadata.linked_data = null
|
editProfile.metadata.linked_data = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
breadcrumbs.setName('Instance', editProfile.metadata.name)
|
||||||
|
|
||||||
return editProfile
|
return editProfile
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user