feat(frontend): link custom preferences in profile editor
This commit is contained in:
parent
c8e4078b35
commit
92bf933c10
7 changed files with 29 additions and 2 deletions
|
@ -2,7 +2,9 @@
|
|||
import { apiRequest } from "$api";
|
||||
import ApiError, { type RawApiError } from "$api/error";
|
||||
import { mergePreferences, type User } from "$api/models/user";
|
||||
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
|
||||
import FieldsEditor from "$components/editor/FieldsEditor.svelte";
|
||||
import NoscriptWarning from "$components/editor/NoscriptWarning.svelte";
|
||||
import log from "$lib/log";
|
||||
import type { PageData } from "./$types";
|
||||
|
||||
|
@ -29,4 +31,7 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<NoscriptWarning />
|
||||
<CustomPreferencesNotice />
|
||||
|
||||
<FieldsEditor bind:fields {ok} {allPreferences} {update} />
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import ApiError, { type RawApiError } from "$api/error";
|
||||
import type { Member } from "$api/models";
|
||||
import { mergePreferences } from "$api/models/user";
|
||||
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
|
||||
import FieldEditor from "$components/editor/FieldEditor.svelte";
|
||||
import FormStatusMarker from "$components/editor/FormStatusMarker.svelte";
|
||||
import NoscriptWarning from "$components/editor/NoscriptWarning.svelte";
|
||||
|
@ -40,6 +41,7 @@
|
|||
|
||||
<NoscriptWarning />
|
||||
<FormStatusMarker form={ok} />
|
||||
<CustomPreferencesNotice />
|
||||
|
||||
<div>
|
||||
<FieldEditor name={$t("profile.names-header")} bind:entries={names} {allPreferences} />
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
import { apiRequest } from "$api";
|
||||
import ApiError, { type RawApiError } from "$api/error";
|
||||
import { mergePreferences, type User } from "$api/models/user";
|
||||
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
|
||||
import FieldsEditor from "$components/editor/FieldsEditor.svelte";
|
||||
import NoscriptWarning from "$components/editor/NoscriptWarning.svelte";
|
||||
import log from "$lib/log";
|
||||
import type { PageData } from "./$types";
|
||||
|
||||
|
@ -29,4 +31,7 @@
|
|||
};
|
||||
</script>
|
||||
|
||||
<NoscriptWarning />
|
||||
<CustomPreferencesNotice />
|
||||
|
||||
<FieldsEditor bind:fields {ok} {allPreferences} {update} />
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
import { apiRequest } from "$api";
|
||||
import ApiError, { type RawApiError } from "$api/error";
|
||||
import { mergePreferences, type User } from "$api/models/user";
|
||||
import CustomPreferencesNotice from "$components/editor/CustomPreferencesNotice.svelte";
|
||||
import FieldEditor from "$components/editor/FieldEditor.svelte";
|
||||
import FormStatusMarker from "$components/editor/FormStatusMarker.svelte";
|
||||
import NoscriptWarning from "$components/editor/NoscriptWarning.svelte";
|
||||
|
@ -37,6 +38,7 @@
|
|||
|
||||
<NoscriptWarning />
|
||||
<FormStatusMarker form={ok} />
|
||||
<CustomPreferencesNotice />
|
||||
|
||||
<div>
|
||||
<FieldEditor name={$t("profile.names-header")} bind:entries={names} {allPreferences} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue