diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/sip2.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/sip2.js index 31f7ebec58..67d3482c53 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/sip2.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/sip2.js @@ -6,110 +6,120 @@ import { $__ } from "../i18n"; export const routes = [ { - path: "/cgi-bin/koha/sip2/sip2.pl", - is_default: true, + title: $__("Administration"), + path: "", + href: "/cgi-bin/koha/admin/admin-home.pl", is_base: true, - title: $__("SIP2"), + is_default: true, children: [ { - path: "", - name: "Home", - component: markRaw(Home), - is_navigation_item: false, - }, - { - path: "/cgi-bin/koha/sip2/institutions", - title: $__("Institutions"), - icon: "fa fa-building-columns", - is_end_node: true, - resource: "SIP2/SIP2InstitutionResource.vue", + path: "/cgi-bin/koha/sip2/sip2.pl", + is_default: true, + is_base: true, + title: $__("SIP2"), children: [ { path: "", - name: "SIP2InstitutionsList", - component: markRaw(ResourceWrapper), + name: "Home", + component: markRaw(Home), + is_navigation_item: false, }, { - path: ":sip_institution_id", - name: "SIP2InstitutionsShow", - component: markRaw(ResourceWrapper), - title: $__("Show institution"), + path: "/cgi-bin/koha/sip2/institutions", + title: $__("Institutions"), + icon: "fa fa-building-columns", + is_end_node: true, + resource: "SIP2/SIP2InstitutionResource.vue", + children: [ + { + path: "", + name: "SIP2InstitutionsList", + component: markRaw(ResourceWrapper), + }, + { + path: ":sip_institution_id", + name: "SIP2InstitutionsShow", + component: markRaw(ResourceWrapper), + title: $__("Show institution"), + }, + { + path: "add", + name: "SIP2InstitutionsFormAdd", + component: markRaw(ResourceWrapper), + title: $__("Add institution"), + }, + { + path: "edit/:sip_institution_id", + name: "SIP2InstitutionsFormAddEdit", + component: markRaw(ResourceWrapper), + title: $__("Edit institution"), + }, + ], }, { - path: "add", - name: "SIP2InstitutionsFormAdd", - component: markRaw(ResourceWrapper), - title: $__("Add institution"), + path: "/cgi-bin/koha/sip2/accounts", + title: $__("Accounts"), + icon: "fa fa-user", + is_end_node: true, + resource: "SIP2/SIP2AccountResource.vue", + children: [ + { + path: "", + name: "SIP2AccountsList", + component: markRaw(ResourceWrapper), + }, + { + path: ":sip_account_id", + name: "SIP2AccountsShow", + component: markRaw(ResourceWrapper), + title: $__("Show account"), + }, + { + path: "add", + name: "SIP2AccountsFormAdd", + component: markRaw(ResourceWrapper), + title: $__("Add account"), + }, + { + path: "edit/:sip_account_id", + name: "SIP2AccountsFormAddEdit", + component: markRaw(ResourceWrapper), + title: $__("Edit account"), + }, + ], }, { - path: "edit/:sip_institution_id", - name: "SIP2InstitutionsFormAddEdit", - component: markRaw(ResourceWrapper), - title: $__("Edit institution"), - }, - ], - }, - { - path: "/cgi-bin/koha/sip2/accounts", - title: $__("Accounts"), - icon: "fa fa-user", - is_end_node: true, - resource: "SIP2/SIP2AccountResource.vue", - children: [ - { - path: "", - name: "SIP2AccountsList", - component: markRaw(ResourceWrapper), - }, - { - path: ":sip_account_id", - name: "SIP2AccountsShow", - component: markRaw(ResourceWrapper), - title: $__("Show account"), - }, - { - path: "add", - name: "SIP2AccountsFormAdd", - component: markRaw(ResourceWrapper), - title: $__("Add account"), - }, - { - path: "edit/:sip_account_id", - name: "SIP2AccountsFormAddEdit", - component: markRaw(ResourceWrapper), - title: $__("Edit account"), - }, - ], - }, - { - path: "/cgi-bin/koha/sip2/system_preference_overrides", - title: $__("System preference overrides"), - icon: "fa fa-cog", - is_end_node: true, - resource: "SIP2/SIP2SystemPreferenceOverrideResource.vue", - children: [ - { - path: "", - name: "SIP2SystemPreferenceOverridesList", - component: markRaw(ResourceWrapper), - }, - { - path: ":sip_system_preference_override_id", - name: "SIP2SystemPreferenceOverridesShow", - component: markRaw(ResourceWrapper), - title: $__("Show system preference override"), - }, - { - path: "add", - name: "SIP2SystemPreferenceOverridesFormAdd", - component: markRaw(ResourceWrapper), - title: $__("Add system preference override"), - }, - { - path: "edit/:sip_system_preference_override_id", - name: "SIP2SystemPreferenceOverridesFormAddEdit", - component: markRaw(ResourceWrapper), - title: $__("Edit system preference override"), + path: "/cgi-bin/koha/sip2/system_preference_overrides", + title: $__("System preference overrides"), + icon: "fa fa-cog", + is_end_node: true, + resource: + "SIP2/SIP2SystemPreferenceOverrideResource.vue", + children: [ + { + path: "", + name: "SIP2SystemPreferenceOverridesList", + component: markRaw(ResourceWrapper), + }, + { + path: ":sip_system_preference_override_id", + name: "SIP2SystemPreferenceOverridesShow", + component: markRaw(ResourceWrapper), + title: $__("Show system preference override"), + }, + { + path: "add", + name: "SIP2SystemPreferenceOverridesFormAdd", + component: markRaw(ResourceWrapper), + title: $__("Add system preference override"), + }, + { + path: "edit/:sip_system_preference_override_id", + name: "SIP2SystemPreferenceOverridesFormAddEdit", + component: markRaw(ResourceWrapper), + title: $__("Edit system preference override"), + }, + ], }, ], },