feat(frontend): storage, trash, policy, stories, shares, jobs, bots, media, login and notes speak russian and english
This commit is contained in:
1 parent
e5a5edcaae
commit
4a5c92f0e9
51 files changed
+1504
-588
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { untrack } from "svelte";
|
||||
import { t } from "#lib/i18n/locale.svelte.js";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
@@ -13,7 +14,7 @@
|
||||
const {
|
||||
initial = "",
|
||||
saving = false,
|
||||
submitLabel = "Добавить заметку",
|
||||
submitLabel,
|
||||
oncancel,
|
||||
onsubmit,
|
||||
}: Props = $props();
|
||||
@@ -41,15 +42,19 @@
|
||||
}}
|
||||
>
|
||||
<textarea
|
||||
placeholder="Заметка к сообщению…"
|
||||
placeholder={t("notes.placeholder")}
|
||||
rows={oncancel ? 2 : 3}
|
||||
bind:value={text}
|
||||
></textarea>
|
||||
<div class="actions">
|
||||
{#if oncancel}
|
||||
<Button onclick={oncancel} variant="translucent">Отмена</Button>
|
||||
<Button onclick={oncancel} variant="translucent">
|
||||
{t("common.cancel")}
|
||||
</Button>
|
||||
{/if}
|
||||
<Button disabled={saving || !valid} type="submit">{submitLabel}</Button>
|
||||
<Button disabled={saving || !valid} type="submit">
|
||||
{submitLabel ?? t("notes.add")}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in new issue
Block a user