Skip to content

Commit

Permalink
Add notice to enforce English language requirement in server creation…
Browse files Browse the repository at this point in the history
… modal
  • Loading branch information
SupertigerDev committed Jan 12, 2025
1 parent 79e29e5 commit 7a87639
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function CreateServerModal(props: { close: () => void }) {
<Modal.Header title={t("createServerModal.title")} icon="dns" />
<Modal.Body class={style.modalBody}>
<Notice type="warn" description={t("createServerModal.notice")} />
<Notice type="warn" description="Server MUST be in English." />
<Input
label={t("createServerModal.serverName")}
onText={controller.setName}
Expand All @@ -29,7 +30,11 @@ export function CreateServerModal(props: { close: () => void }) {
onClick={props.close}
/>
<Modal.Button
label={controller.requestSent() ? t("createServerModal.creating") : t("createServerModal.createServerButton")}
label={
controller.requestSent()
? t("createServerModal.creating")
: t("createServerModal.createServerButton")
}
iconName="add"
primary
onClick={controller.onCreateClick}
Expand Down

0 comments on commit 7a87639

Please sign in to comment.