From 338e898f5691532891f2229da7f4c5efd4de7598 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 1 Jan 2023 21:02:55 +0100 Subject: [PATCH 01/56] client: disable unavailable visibilities --- packages/client/src/components/post-form.vue | 4 ++-- .../src/components/visibility-picker.vue | 22 ++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index b7efa3b14..a22235ee3 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -393,8 +393,8 @@ function setVisibility() { } os.popup(defineAsyncComponent(() => import('./visibility-picker.vue')), { - currentVisibility: visibility, - currentLocalOnly: localOnly, + parentVisibility: visibility, + parentLocalOnly: localOnly, src: visibilityButton, }, { changeVisibility: v => { diff --git a/packages/client/src/components/visibility-picker.vue b/packages/client/src/components/visibility-picker.vue index 2ed42cb70..4321a6982 100644 --- a/packages/client/src/components/visibility-picker.vue +++ b/packages/client/src/components/visibility-picker.vue @@ -1,28 +1,28 @@