Skip to content
Snippets Groups Projects

Draft: New: Data Publication Request Intro Page

Closed Benedikt Heinrichs requested to merge Issue/2401-advisoryServiceUI1 into dev
7 files
+ 62
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -91,7 +91,7 @@ export default defineComponent({
},
projectMenu(): Array<SidebarItem> {
if (this.project && this.project.slug) {
return [
const projectItems = [
{
href: {
name: "project-page",
@@ -111,6 +111,23 @@ export default defineComponent({
},
},
];
if (
this.currentUserRole &&
this.currentUserRole.displayName === "Owner"
) {
projectItems.push({
href: {
name: "project-data-publication",
params: { slug: this.project.slug },
},
title: this.$tc("sidebar.projectDataPublication").toString(),
icon: "bi bi-file-earmark-arrow-up",
attributes: {
title: this.$tc("sidebar.projectDataPublication").toString(),
},
});
}
return projectItems;
}
return [];
},
Loading