feat: show max number of flags in settings
This commit is contained in:
parent
309aa569f6
commit
038de34f8f
|
@ -3,6 +3,7 @@ import { PUBLIC_BASE_URL, PUBLIC_MEDIA_URL } from "$env/static/public";
|
|||
export const MAX_MEMBERS = 500;
|
||||
export const MAX_FIELDS = 25;
|
||||
export const MAX_DESCRIPTION_LENGTH = 1000;
|
||||
export const MAX_FLAGS = 500;
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts">
|
||||
import type { APIError, PrideFlag } from "$lib/api/entities";
|
||||
import { MAX_FLAGS, type APIError, type PrideFlag } from "$lib/api/entities";
|
||||
import { Button, Icon, Input, Modal, ModalBody, ModalFooter, ModalHeader } from "sveltestrap";
|
||||
import type { PageData } from "./$types";
|
||||
import Flag from "./Flag.svelte";
|
||||
|
@ -99,7 +99,7 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<h1>Pride flags ({data.flags.length})</h1>
|
||||
<h1>Pride flags ({data.flags.length}/{MAX_FLAGS})</h1>
|
||||
|
||||
<p>
|
||||
You can upload pride flags to use on your profiles here. Flags you upload here will <em>not</em> automatically
|
||||
|
|
Loading…
Reference in New Issue