Skip to content

Commit

Permalink
Update breadcrumbs on profile name update (#643)
Browse files Browse the repository at this point in the history
* Update breadcrumbs on profile name update

* Fix formatting
  • Loading branch information
Rayn322 authored Nov 15, 2023
1 parent 3c28897 commit 4491d50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions theseus_gui/src/pages/instance/Options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,11 @@ import { get_game_versions, get_loaders } from '@/helpers/tags.js'
import { handleError } from '@/store/notifications.js'
import { mixpanel_track } from '@/helpers/mixpanel'
import { useTheming } from '@/store/theme.js'
import { useBreadcrumbs } from '@/store/breadcrumbs'
import ModpackVersionModal from '@/components/ui/ModpackVersionModal.vue'
const breadcrumbs = useBreadcrumbs()
const router = useRouter()
const props = defineProps({
Expand Down Expand Up @@ -753,6 +756,9 @@ const editProfileObject = computed(() => {
if (unlinkModpack.value) {
editProfile.metadata.linked_data = null
}
breadcrumbs.setName('Instance', editProfile.metadata.name)
return editProfile
})
Expand Down

0 comments on commit 4491d50

Please sign in to comment.