feat: setting all system privacy settings to a single value

This commit is contained in:
Spectralitree
2021-12-12 15:07:11 +01:00
parent 1034535097
commit 61fb53b94b
3 changed files with 20 additions and 6 deletions

View File

@@ -31,11 +31,25 @@
loading = false;
}
}
let allPrivacy: string;
$: { changePrivacy(allPrivacy)}
function changePrivacy(value: string) {
if (value) {
input.privacy.description_privacy = value;
input.privacy.member_list_privacy = value;
input.privacy.group_list_privacy = value;
input.privacy.front_privacy = value;
input.privacy.front_history_privacy = value;
}
}
</script>
<Label><b>Set all to:</b></Label>
<Input type="select" bind:value={input.privacy.description_privacy}>
<option default>public</option>
<Input type="select" bind:value={allPrivacy}>
<option>public</option>
<option>private</option>
</Input>
<hr />