mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: 🚩 Add default note visibility preference
This commit is contained in:
parent
d267f23236
commit
6384f9ac8e
6 changed files with 42 additions and 6 deletions
|
|
@ -120,6 +120,7 @@ import Files from "./files.vue";
|
|||
|
||||
const { Control_Enter, Command_Enter } = useMagicKeys();
|
||||
const ctrlEnterSend = useSetting(SettingIds.CtrlEnterToSend);
|
||||
const defaultVisibility = useSetting(SettingIds.DefaultVisibility);
|
||||
const { play } = useAudio();
|
||||
const fileInput = ref<HTMLInputElement | null>(null);
|
||||
|
||||
|
|
@ -178,7 +179,7 @@ const state = reactive({
|
|||
contentType: "text/markdown" as "text/markdown" | "text/plain",
|
||||
visibility: (relation?.type === "edit"
|
||||
? relation.note.visibility
|
||||
: "public") as Status["visibility"],
|
||||
: (defaultVisibility.value.value ?? "public")) as Status["visibility"],
|
||||
files: (relation?.type === "edit"
|
||||
? relation.note.media_attachments.map((a) => ({
|
||||
apiId: a.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue