From 3237bcf2892aa2c1646beae99ed362cc9e2281f4 Mon Sep 17 00:00:00 2001 From: Draconizations Date: Sat, 14 May 2022 17:51:18 +0200 Subject: [PATCH] feat: change the bulk privacy interface --- src/pages/BulkGroupPrivacy.svelte | 88 ++++++++++++++++++---------- src/pages/BulkMemberPrivacy.svelte | 93 ++++++++++++++++++++---------- 2 files changed, 120 insertions(+), 61 deletions(-) diff --git a/src/pages/BulkGroupPrivacy.svelte b/src/pages/BulkGroupPrivacy.svelte index 13f4dc48..e0ce1728 100644 --- a/src/pages/BulkGroupPrivacy.svelte +++ b/src/pages/BulkGroupPrivacy.svelte @@ -1,33 +1,56 @@ @@ -42,22 +65,29 @@ - Apply the selected privacy options (and leave the unselected options untouched): -

- - {#each Object.keys(privacy) as key} - - {/each} - -
- - -

- - - -

+ {#if err} + {err} + {/if} + {#if success} + Member privacy updated! + {/if} + + changeAll(e)}> + + + +
+ + {#each Object.keys(privacy) as x} + + + + + + + + {/each} + - -

- - - -

+ {#if err} + {err} + {/if} + {#if success} + Member privacy updated! + {/if} + + changeAll(e)}> + + + +
+ + {#each Object.keys(privacy) as x} + + + + + + + + {/each} +