This commit is contained in:
j3d1 2026-08-27 20:41:19 +02:00
parent 2bb6624d50
commit 7276750c66
15 changed files with 552 additions and 169 deletions

View file

@ -33,7 +33,7 @@
Edit
</button>
<button type="submit" class="btn btn-danger"
@click="deleteStorageLocation(location).then(() => $router.push(ownerOverviewRoute(location)))">
@click="deleteStorageLocation(location).then(() => $router.push(ownerLocationOverviewRoute(location)))">
<b-icon-trash></b-icon-trash>
Delete
</button>
@ -53,7 +53,7 @@
import * as BIcons from "bootstrap-icons-vue";
import BaseLayout from "@/components/BaseLayout.vue";
import {mapActions, mapGetters, mapState} from "vuex";
import {decodeHandleFromUrl, ownerOverviewRoute} from "@/router";
import {decodeHandleFromUrl, ownerLocationOverviewRoute} from "@/router";
export default {
name: "StorageLocationDetail",
@ -93,7 +93,7 @@ export default {
}
},
methods: {
ownerOverviewRoute,
ownerLocationOverviewRoute,
...mapActions(["fetchStorageLocationByHandle", "deleteStorageLocation", "fetchGroupMemberships"]),
async loadLocation() {
this.location = await this.fetchStorageLocationByHandle({handle: this.decodedHandle, id: this.id}) || {}