1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +02:00

Merge branch 'mealie-next' into chore-update-build-link-to-org

This commit is contained in:
Kuchenpirat 2024-01-31 10:51:56 +01:00 committed by GitHub
commit 6097440781
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 202 additions and 136 deletions

View file

@ -74,7 +74,13 @@ export default defineComponent({
const { response, data } = await adminApi.groups.updateOne(group.value.id, group.value);
if (response?.status === 200 && data) {
if (group.value.slug !== data.slug) {
// the slug updated, which invalidates the nav URLs
window.location.reload();
}
group.value = data;
} else {
alert.error(i18n.tc("settings.settings-update-failed"));
}
}