Force Go and View buttons to be the same width.

This commit is contained in:
danfunk 2023-05-16 13:19:22 -04:00
parent 256492aa55
commit cf09321432
1 changed files with 2 additions and 2 deletions

View File

@ -1601,14 +1601,14 @@ export default function ProcessInstanceListTable({
) { ) {
hasAccessToCompleteTask = true; hasAccessToCompleteTask = true;
} }
console.log("Has Access to complete task?", hasAccessToCompleteTask, regex, processInstance.potential_owner_usernames)
let buttonText = 'View'; let buttonText = 'View';
if (hasAccessToCompleteTask && processInstance.task_id) { if (hasAccessToCompleteTask && processInstance.task_id) {
buttonText = 'Go'; buttonText = 'Go';
} }
buttonElement = ( buttonElement = (
<Button kind="secondary" href={interstitialUrl}> <Button kind="secondary" href={interstitialUrl} style={{width:"100%"}}>
{buttonText} {buttonText}
</Button> </Button>
); );