stash
This commit is contained in:
parent
2bb6624d50
commit
7276750c66
15 changed files with 552 additions and 169 deletions
|
|
@ -55,7 +55,7 @@
|
|||
import * as BIcons from "bootstrap-icons-vue";
|
||||
import {mapActions, mapState} from "vuex";
|
||||
import BaseLayout from "@/components/BaseLayout.vue";
|
||||
import {decodeHandleFromUrl, ownerOverviewRoute} from "@/router";
|
||||
import {decodeHandleFromUrl, ownerLocationOverviewRoute} from "@/router";
|
||||
|
||||
export default {
|
||||
name: "StorageLocationEdit",
|
||||
|
|
@ -100,7 +100,7 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
ownerOverviewRoute,
|
||||
ownerLocationOverviewRoute,
|
||||
...mapActions(["fetchStorageLocationByHandle", "updateStorageLocation", "fetchInfo",
|
||||
"fetchStorageLocations", "fetchGroupStorageLocations"]),
|
||||
async loadLocation() {
|
||||
|
|
@ -121,7 +121,7 @@ export default {
|
|||
category: this.location.category === "" ? null : this.location.category,
|
||||
parent: this.location.parent === "" ? null : this.location.parent
|
||||
};
|
||||
this.updateStorageLocation(locationData).then(updated => this.$router.push(ownerOverviewRoute(updated)));
|
||||
this.updateStorageLocation(locationData).then(updated => this.$router.push(ownerLocationOverviewRoute(updated)));
|
||||
},
|
||||
isChildOf(location, parentId) {
|
||||
// Simple check to prevent circular references
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue