Commit 0564fc02 authored by Jean Rabreau's avatar Jean Rabreau
Browse files

馃帹 CrudList link to use named route

parent c5ab4d41
......@@ -45,8 +45,8 @@
<div class="d-flex pa-2">
<div
class="d-flex flex-grow-1"
:class="item.to && item.to.length ? 'pointer': ''"
@click="item.to && item.to.length ? $router.push(item.to) : undefined"
:class="item.to ? 'pointer': ''"
@click="item.to ? $router.push(item.to) : undefined"
>
<div class="align-self-center mr-4">
<avatar
......
......@@ -63,7 +63,10 @@ export default {
label: isManager ? this.$t('project.manager') : this.$t('project.contributor'),
},
updatedAt,
to: `/projects/${id}/sets`,
to: {
name: 'projectSets',
params: {projectId: id}
},
}
});
},
......
......@@ -65,7 +65,13 @@ export default {
tooltip: this.$t('btn.delete'),
},
],
to: `/projects/${this.projectId}/groups/${group.id}`,
to: {
name: 'projectGroup',
params: {
projectId: this.projectId,
groupId: group.id
}
},
}));
},
},
......
......@@ -63,7 +63,13 @@ export default {
// icon: 'mdi-share-variant',
// },
// ],
to: `/projects/${this.projectId}/templates/${template.id}`,
to: {
name: 'projectTemplate',
params: {
projectId: this.projectId,
templateId: template.id,
}
}
}));
},
},
......
......@@ -52,7 +52,10 @@ export default {
],
isSelectable: item.canEdit,
updatedAt: item.updatedAt,
to: `/items/${item.id}/viewer`,
to: {
name: 'itemViewer',
params: { itemId: item.id }
},
}));
},
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment