feat: show max number of flags in settings

This commit is contained in:
sam 2023-07-31 02:17:50 +02:00
parent 309aa569f6
commit 038de34f8f
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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