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

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,7 @@
}(window.location))
</script>
<!-- End Single Page Apps for GitHub Pages -->
<script type="module" crossorigin src="/assets/main.d79280e1.js"></script>
<script type="module" crossorigin src="/assets/main.6fb586f3.js"></script>
<link rel="modulepreload" href="/assets/vendor.a3039f12.js">
<link rel="stylesheet" href="/assets/vendor.484ba9db.css">
<link rel="stylesheet" href="/assets/main.4f449199.css">

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