mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
change redirects and references to new organization routes
This commit is contained in:
committed by
Constantin Graf
parent
24875f9424
commit
5d01b20dbf
@@ -61,7 +61,7 @@ const switchToTeam = (organization: Organization) => {
|
||||
|
||||
<DropdownMenuItem as-child>
|
||||
<Link
|
||||
:href="route('teams.show', page.props.auth.user.current_team.id)"
|
||||
:href="route('organizations.show', page.props.auth.user.current_team.id)"
|
||||
class="inline-flex items-center gap-2.5 w-full">
|
||||
<Cog6ToothIcon class="w-5 h-5 text-icon-default" />
|
||||
<span>Organization Settings</span>
|
||||
@@ -74,7 +74,7 @@ const switchToTeam = (organization: Organization) => {
|
||||
|
||||
<DropdownMenuItem as-child>
|
||||
<Link
|
||||
:href="route('teams.create')"
|
||||
:href="route('organizations.create')"
|
||||
class="inline-flex items-center gap-2.5 w-full">
|
||||
<PlusCircleIcon class="w-5 h-5 text-icon-default" />
|
||||
<span>Create new organization</span>
|
||||
|
||||
@@ -280,10 +280,15 @@ const page = usePage<{
|
||||
v-if="canUpdateOrganization()"
|
||||
title="Settings"
|
||||
:icon="Cog6ToothIcon"
|
||||
:href="route('teams.show', page.props.auth.user.current_team.id)"
|
||||
:href="
|
||||
route(
|
||||
'organizations.show',
|
||||
page.props.auth.user.current_team.id
|
||||
)
|
||||
"
|
||||
:current="
|
||||
route().current(
|
||||
'teams.show',
|
||||
'organizations.show',
|
||||
page.props.auth.user.current_team.id
|
||||
)
|
||||
"></NavigationSidebarItem>
|
||||
|
||||
@@ -210,7 +210,7 @@ export function createNavigationCommands(
|
||||
icon: Cog6ToothIcon,
|
||||
keywords: ['settings', 'organization', 'configuration'],
|
||||
group: 'navigation',
|
||||
action: () => navigate('teams.show', { team: currentTeamId() }),
|
||||
action: () => navigate('organizations.show', { organizationId: currentTeamId() }),
|
||||
permission: permissions.canUpdateOrganization,
|
||||
priority: GROUP_PRIORITIES.navigation - 3,
|
||||
},
|
||||
|
||||
7
resources/js/ziggy.d.ts
vendored
7
resources/js/ziggy.d.ts
vendored
@@ -114,6 +114,13 @@ declare module 'ziggy-js' {
|
||||
'other-browser-sessions.destroy': [];
|
||||
'current-user-photo.destroy': [];
|
||||
'current-user.destroy': [];
|
||||
'organizations.create': [];
|
||||
'organizations.show': [
|
||||
{
|
||||
'name': 'organizationId';
|
||||
'required': true;
|
||||
},
|
||||
];
|
||||
'teams.create': [];
|
||||
'teams.store': [];
|
||||
'teams.show': [
|
||||
|
||||
@@ -197,6 +197,12 @@ const Ziggy = {
|
||||
'methods': ['DELETE'],
|
||||
},
|
||||
'current-user.destroy': { 'uri': 'user', 'methods': ['DELETE'] },
|
||||
'organizations.create': { 'uri': 'organizations/create', 'methods': ['GET', 'HEAD'] },
|
||||
'organizations.show': {
|
||||
'uri': 'organizations/{organizationId}',
|
||||
'methods': ['GET', 'HEAD'],
|
||||
'parameters': ['organizationId'],
|
||||
},
|
||||
'teams.create': { 'uri': 'teams/create', 'methods': ['GET', 'HEAD'] },
|
||||
'teams.store': { 'uri': 'teams', 'methods': ['POST'] },
|
||||
'teams.show': {
|
||||
|
||||
Reference in New Issue
Block a user