Fix breadcrum for resources

pull/3346/head
Julio Montoya 5 years ago
parent 5a4568ddc9
commit 8d899fc9b3
  1. 3
      assets/vue/components/Breadcrumb.vue
  2. 7
      assets/vue/mixins/ListMixin.js

@ -18,9 +18,6 @@ export default {
resourceNode: 'getResourceNode'
}),
items() {
const items = [
{
text: 'Home',

@ -1,10 +1,11 @@
import isEmpty from 'lodash/isEmpty';
import { formatDateTime } from '../utils/dates';
import NotificationMixin from './NotificationMixin';
import {mapFields} from "vuex-map-fields";
import {mapGetters} from "vuex";
export default {
mixins: [NotificationMixin],
data() {
return {
options: {
@ -21,6 +22,8 @@ export default {
// react to route changes...
this.resetList = true;
this.onUpdateOptions(this.options);
let nodeId = this.$route.params['node'];
this.findResourceNode('/api/resource_nodes/'+ nodeId);
},
deletedItem(item) {
@ -102,11 +105,13 @@ export default {
let folderParams = this.$route.query;
this.resetList = true;
this.$route.params.node = item['resourceNode']['id'];
this.$router.push({
name: `${this.$options.servicePrefix}List`,
params: {node: item['resourceNode']['id']},
query: folderParams,
});
/*this.$router.push({
name: `${this.$options.servicePrefix}List`,
params: {node: item['resourceNode']['id']}

Loading…
Cancel
Save