Merge pull request #2554 from AreYouRlyScared/subusers
Duplicate save/invite button at top
This commit is contained in:
commit
9ff691bfde
|
@ -95,10 +95,17 @@ const EditSubuserModal = ({ subuser }: Props) => {
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<Form>
|
<Form>
|
||||||
|
<div css={tw`flex justify-between`}>
|
||||||
<h2 css={tw`text-2xl`} ref={ref}>
|
<h2 css={tw`text-2xl`} ref={ref}>
|
||||||
{subuser ? `${canEditUser ? 'Modify' : 'View'} permissions for ${subuser.email}` : 'Create new subuser'}
|
{subuser ? `${canEditUser ? 'Modify' : 'View'} permissions for ${subuser.email}` : 'Create new subuser'}
|
||||||
</h2>
|
</h2>
|
||||||
<FlashMessageRender byKey={'user:edit'} css={tw`mt-4`}/>
|
<div>
|
||||||
|
<Button type={'submit'} css={tw`w-full sm:w-auto`}>
|
||||||
|
{subuser ? 'Save' : 'Invite User'}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<FlashMessageRender byKey={'user:edit'} css={tw`mt-4`} />
|
||||||
{(!isRootAdmin && loggedInPermissions[0] !== '*') &&
|
{(!isRootAdmin && loggedInPermissions[0] !== '*') &&
|
||||||
<div css={tw`mt-4 pl-4 py-2 border-l-4 border-cyan-400`}>
|
<div css={tw`mt-4 pl-4 py-2 border-l-4 border-cyan-400`}>
|
||||||
<p css={tw`text-sm text-neutral-300`}>
|
<p css={tw`text-sm text-neutral-300`}>
|
||||||
|
|
Loading…
Reference in New Issue