Skip to content
Snippets Groups Projects

Fixing bug where details button was not shown

Merged Tore.Brede requested to merge fix_sent_invitations_details into master
1 file
+ 15
11
Compare changes
  • Side-by-side
  • Inline
@@ -75,7 +75,16 @@ const PersonLine = ({
@@ -75,7 +75,16 @@ const PersonLine = ({
{i18n.language === 'en' ? role.ou_en : role.ou_nb}
{i18n.language === 'en' ? role.ou_en : role.ou_nb}
</TableCell>
</TableCell>
<TableCell align="left">
<TableCell align="left">
{displayCancel ? (
<Button
 
variant="contained"
 
component={Link}
 
to={`/sponsor/guest/${person.pid}`}
 
>
 
{t('common:details')}
 
</Button>
 
</TableCell>
 
{displayCancel && (
 
<TableCell align="left">
<Button
<Button
data-testid="button-invite-cancel"
data-testid="button-invite-cancel"
sx={{ color: 'theme.palette.secondary', mr: 1 }}
sx={{ color: 'theme.palette.secondary', mr: 1 }}
@@ -87,16 +96,8 @@ const PersonLine = ({
@@ -87,16 +96,8 @@ const PersonLine = ({
>
>
{t('common:button.cancel')}
{t('common:button.cancel')}
</Button>
</Button>
) : (
</TableCell>
<Button
)}
variant="contained"
component={Link}
to={`/sponsor/guest/${person.pid}`}
>
{t('common:details')}
</Button>
)}
</TableCell>
</TableRow>
</TableRow>
)
)
}
}
@@ -142,6 +143,9 @@ const WaitingForGuestRegistration = ({
@@ -142,6 +143,9 @@ const WaitingForGuestRegistration = ({
<TableCell align="left">{t('common:period')}</TableCell>
<TableCell align="left">{t('common:period')}</TableCell>
<TableCell align="left">{t('common:ou')}</TableCell>
<TableCell align="left">{t('common:ou')}</TableCell>
<TableCell align="left">{t('common:choice')}</TableCell>
<TableCell align="left">{t('common:choice')}</TableCell>
 
<TableCell align="left">
 
{t('common:button.cancelInvitation')}
 
</TableCell>
</TableRow>
</TableRow>
</TableHead>
</TableHead>
<TableBody>
<TableBody>
Loading