wowowowowo
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
} from "@/components/ui/sidebar";
|
||||
import { type NavItem } from "@/types";
|
||||
import { Link, usePage } from "@inertiajs/vue3";
|
||||
import { LayoutGrid, Server } from "lucide-vue-next";
|
||||
import { AppWindow, Boxes, ClipboardList, LayoutGrid, Server, Workflow } from "lucide-vue-next";
|
||||
import AppLogo from "./AppLogo.vue";
|
||||
|
||||
const mainNavItems: NavItem[] = [
|
||||
@@ -27,6 +27,20 @@ const mainNavItems: NavItem[] = [
|
||||
const organisation = usePage().props.organisation;
|
||||
|
||||
if (organisation) {
|
||||
mainNavItems.push({
|
||||
title: "Environments",
|
||||
href: route("environments.index", {
|
||||
organisation: organisation.id,
|
||||
}),
|
||||
icon: Boxes,
|
||||
});
|
||||
mainNavItems.push({
|
||||
title: "Applications",
|
||||
href: route("applications.index", {
|
||||
organisation: organisation.id,
|
||||
}),
|
||||
icon: AppWindow,
|
||||
});
|
||||
mainNavItems.push({
|
||||
title: "Servers",
|
||||
href: route("servers.index", {
|
||||
@@ -34,6 +48,29 @@ if (organisation) {
|
||||
}),
|
||||
icon: Server,
|
||||
});
|
||||
mainNavItems.push({
|
||||
title: "Operations",
|
||||
href: route("operations.index", {
|
||||
organisation: organisation.id,
|
||||
}),
|
||||
icon: Workflow,
|
||||
});
|
||||
|
||||
if (
|
||||
organisation.providers_count === 0 ||
|
||||
organisation.source_providers_count === 0 ||
|
||||
organisation.registries_count === 0 ||
|
||||
organisation.servers_count === 0 ||
|
||||
organisation.applications_count === 0
|
||||
) {
|
||||
mainNavItems.push({
|
||||
title: "Onboarding",
|
||||
href: route("onboarding.show", {
|
||||
organisation: organisation.id,
|
||||
}),
|
||||
icon: ClipboardList,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const footerNavItems: NavItem[] = [];
|
||||
|
||||
Reference in New Issue
Block a user