Skip to content

Commit

Permalink
More dialog cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Jan 21, 2025
1 parent 8d7c986 commit 3a13831
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 9 deletions.
11 changes: 7 additions & 4 deletions services/main-frontend/src/components/forms/NewReferenceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,15 @@ const NewReferenceForm: React.FC<React.PropsWithChildren<NewReferenceFormProps>>
</ErrorText>
))}
<br />
<Button variant="primary" size="medium" type="submit" value={t("button-text-submit")}>
<Button
variant="primary"
size="medium"
fullWidth
type="submit"
value={t("button-text-submit")}
>
{t("button-text-submit")}
</Button>
<Button variant="secondary" size="medium" type="button" onClick={onCancel}>
{t("button-text-close")}
</Button>
</form>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ const NewCourseInstanceForm: React.FC<React.PropsWithChildren<FormProps>> = ({
margin-bottom: 0.5rem;
`}
/>
<Button variant="primary" size="medium" type="submit" value={t("button-text-submit")}>
<Button
variant="primary"
size="medium"
fullWidth
type="submit"
value={t("button-text-submit")}
>
{t("button-text-submit")}
</Button>
<Button variant="secondary" size="medium" onClick={onCancel}>
{t("button-text-cancel")}
</Button>
</form>
</>
)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion system-tests/src/tests/material-reference.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test("material reference tests", async ({ page, headless }, testInfo) => {
headless,
testInfo,
snapshotName: "add-new-material-reference-dialog",
waitForTheseToBeVisibleAndStable: [page.getByText("Submit"), page.locator("text=Close")],
waitForTheseToBeVisibleAndStable: [page.getByText("Submit")],
})

await page.locator('textarea[name="references"]').click()
Expand Down

0 comments on commit 3a13831

Please sign in to comment.