diff --git a/README.md b/README.md index 8e05f4e..7798933 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,9 @@ Please don't hitch your wagon to this star just yet... I'm coding this in the op - [x] Allow users to upgrade their accounts fron individual accounts to multi-user accounts (Teams). - [x] Allow users to switch between Teams and view/edit data from the selected Team. - [x] All features, billing and limits is controlled at the Account (Team) level (not the user level) -- [ ] Team administrators and owners can administer the permissions (roles) of other team members on the Accounts page -- [ ] Gen/Regen an invite link to allow users to join a team +- [x] Gen/Regen an invite link to allow users to join a team +- [x] Team administrators and owners can accept pending invites +- [x] Team administrators and owners can administer the permissions (roles) of other team members on the Accounts page ### Plans and Pricing - [x] Manage multiple Plans each with specific Feature flags and Plan limits diff --git a/components/AppHeader.vue b/components/AppHeader.vue index 60d9f1b..3d7316b 100644 --- a/components/AppHeader.vue +++ b/components/AppHeader.vue @@ -37,8 +37,9 @@
Switch Account.. -
diff --git a/lib/services/account.service.ts b/lib/services/account.service.ts index d663073..c7df7ce 100644 --- a/lib/services/account.service.ts +++ b/lib/services/account.service.ts @@ -1,6 +1,7 @@ import { ACCOUNT_ACCESS } from '@prisma/client'; import prisma_client from '~~/prisma/prisma.client'; import { accountWithMembers, AccountWithMembers, membershipWithAccount, MembershipWithAccount, membershipWithUser, MembershipWithUser } from './service.types'; +import generator from 'generate-password-ts'; export default class AccountService { async getAccountById(account_id: number): PromiseName: {{ activeMembership?.account.name }}
Name: {{ activeMembership?.account.name }}
Current Period Ends: {{ formatDate(activeMembership?.account.current_period_ends) }}
Permitted Features: {{ activeMembership?.account.features }}
Maximum Notes: {{ activeMembership?.account.max_notes }}
Maximum Members: {{ activeMembership?.account.max_members }}
-Access Level: {{ activeMembership?.access }}
+Access Level: {{ activeMembership?.access }}
Plan: {{ activeMembership?.account.plan_name }}
+Join Link:
{{ joinURL() }} User Id: {{ activeMembership?.user_id }}
-or
+