diff --git a/app/web/src/components/ApprovalFlowModal.vue b/app/web/src/components/ApprovalFlowModal.vue index 47d203e30b..143f5a08f2 100644 --- a/app/web/src/components/ApprovalFlowModal.vue +++ b/app/web/src/components/ApprovalFlowModal.vue @@ -83,6 +83,15 @@ function applyButtonHandler() { } } else { changeSetsStore.REQUEST_CHANGE_SET_APPROVAL(); + + // TODO(nick): we should remove this in favor of only the WsEvent fetching. It appears that + // requesting the approval itself is insufficient for getting the latest approval status at + // the time of writing and the reason appears to be that the change set is "open" by the + // time the inset modal opens. Fortunately, this will work since we are the requester. + if (changeSet.value) { + changeSetsStore.FETCH_APPROVAL_STATUS(changeSet.value.id); + } + closeModalHandler(); } } diff --git a/app/web/src/components/InsetApprovalModal.vue b/app/web/src/components/InsetApprovalModal.vue index 2e92d26b4d..42a946e0b9 100644 --- a/app/web/src/components/InsetApprovalModal.vue +++ b/app/web/src/components/InsetApprovalModal.vue @@ -3,12 +3,12 @@ v-if="mode !== 'error'" :class=" clsx( - 'w-1/2 flex flex-col gap-sm p-sm shadow-2xl', + 'lg:w-1/2 flex flex-col gap-sm p-sm shadow-2xl max-h-full overflow-hidden', themeClasses('bg-shade-0 border', 'bg-neutral-900'), ) " > -