diff --git a/e2e/organization.spec.ts b/e2e/organization.spec.ts index 4b84f4f9..01754d4c 100644 --- a/e2e/organization.spec.ts +++ b/e2e/organization.spec.ts @@ -4,14 +4,14 @@ import { PLAYWRIGHT_BASE_URL } from '../playwright/config'; async function goToOrganizationSettings(page) { await page.goto(PLAYWRIGHT_BASE_URL + '/dashboard'); await page.locator('[data-testid="organization_switcher"]:visible').click(); - await page.getByText('Team Settings').click(); + await page.getByText('Organization Settings').click(); } test('test that organization name can be updated', async ({ page }) => { await goToOrganizationSettings(page); - await page.getByLabel('Team Name').fill('NEW ORG NAME'); - await page.getByLabel('Team Name').press('Enter'); - await page.getByLabel('Team Name').press('Meta+r'); + await page.getByLabel('Organization Name').fill('NEW ORG NAME'); + await page.getByLabel('Organization Name').press('Enter'); + await page.getByLabel('Organization Name').press('Meta+r'); await expect( page.locator('[data-testid="organization_switcher"]:visible') ).toContainText('NEW ORG NAME'); diff --git a/resources/js/Components/OrganizationSwitcher.vue b/resources/js/Components/OrganizationSwitcher.vue index f501e26e..55717e6a 100644 --- a/resources/js/Components/OrganizationSwitcher.vue +++ b/resources/js/Components/OrganizationSwitcher.vue @@ -4,6 +4,7 @@ import Dropdown from '@/Components/Dropdown.vue'; import DropdownLink from '@/Components/DropdownLink.vue'; import { router, usePage } from '@inertiajs/vue3'; import type { Organization, User } from '@/types/models'; +import { isBillingActivated } from '@/utils/billing'; const page = usePage<{ jetstream: { @@ -80,7 +81,15 @@ const switchToTeam = (team: Organization) => { page.props.auth.user.current_team.id ) "> - Team Settings + Organization Settings + + + + Billing - + - Create Team + Create Organization diff --git a/resources/js/Pages/Teams/Partials/CreateTeamForm.vue b/resources/js/Pages/Teams/Partials/CreateTeamForm.vue index 91d58b9a..bc8bbcbb 100644 --- a/resources/js/Pages/Teams/Partials/CreateTeamForm.vue +++ b/resources/js/Pages/Teams/Partials/CreateTeamForm.vue @@ -26,7 +26,7 @@ const page = usePage<{ - Team Details + Organization Details Create a new team to collaborate with others on projects. @@ -34,7 +34,7 @@ const page = usePage<{ - + - + -import { useForm } from '@inertiajs/vue3'; +import { Link, useForm } from '@inertiajs/vue3'; import ActionMessage from '@/Components/ActionMessage.vue'; import FormSection from '@/Components/FormSection.vue'; import InputError from '@/Components/InputError.vue'; @@ -8,6 +8,8 @@ import PrimaryButton from '@/Components/PrimaryButton.vue'; import TextInput from '@/Components/TextInput.vue'; import type { Organization } from '@/types/models'; import type { Permissions } from '@/types/jetstream'; +import { CreditCardIcon } from '@heroicons/vue/20/solid'; +import { isBillingActivated } from '@/utils/billing'; const props = defineProps<{ team: Organization; @@ -29,7 +31,7 @@ const updateTeamName = () => { - Team Name + Organization Name The team's name and owner information. @@ -37,29 +39,39 @@ const updateTeamName = () => { - - + + + - - + + - - - {{ team.owner.name }} - - - {{ team.owner.email }} + + + {{ team.owner.name }} + + + {{ team.owner.email }} + + + + + + Go to Billing + + + - + - + - Team Settings + Organization Settings diff --git a/resources/js/utils/billing.ts b/resources/js/utils/billing.ts new file mode 100644 index 00000000..f7cc0092 --- /dev/null +++ b/resources/js/utils/billing.ts @@ -0,0 +1,3 @@ +export function isBillingActivated() { + return true; +}