From 43479aaa664ac25cdf6703127334e6feafbff980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Fri, 25 Nov 2022 20:10:45 +0800 Subject: [PATCH] feat: publish and show sensitive content --- components/publish/PublishWidget.vue | 21 +++++++++++++++++++++ components/status/StatusBody.vue | 15 ++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index ffb41269..86a04b42 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -63,6 +63,10 @@ async function pickAttachments() { await uploadAttachments(files) } +async function toggleSensitive() { + draft.params.sensitive = !draft.params.sensitive +} + async function uploadAttachments(files: File[]) { isUploading = true for (const file of files) { @@ -137,6 +141,16 @@ onUnmounted(() => { border="2 dashed transparent" p-1 :class="[isSending ? 'pointer-events-none' : '', isOverDropZone ? '!border-primary' : '']" > +
+ +
+