From: Mira Limbeck <m.limbeck@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: Re: [pmg-devel] [RFC PATCH pmg-gui 1/1] quarantine content: add checkbox for controlling image loading
Date: Wed, 21 Feb 2024 15:17:26 +0100 [thread overview]
Message-ID: <e3390578-83c3-4776-9b91-29945975f9ab@proxmox.com> (raw)
In-Reply-To: <20240213113050.2349660-3-d.csapak@proxmox.com>
On 2/13/24 12:30, Dominik Csapak wrote:
> sometimes users don't want to load the images from the quarantine,
> even when the admin configured 'viewimages' to on in the config.
> (e.g. for privacy reasons)
>
> This checkbox sets/gets the state from the browser local storage
> (so it's saved across reloads) to save the users preference of loading
> images.
>
> If the backend is set to not load the images, the checkbox doesn't have
> any effect.
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> js/AttachmentQuarantine.js | 4 +++-
> js/Makefile | 1 +
> js/SpamQuarantine.js | 4 +++-
> js/VirusQuarantine.js | 4 +++-
> js/controller/QuarantineController.js | 19 ++++++++++++++++---
> js/form/ViewImages.js | 17 +++++++++++++++++
> 6 files changed, 43 insertions(+), 6 deletions(-)
> create mode 100644 js/form/ViewImages.js
>
I'd prefer a button similar to the `Toggle Raw` and `Toggle Spam Info`
ones that is off by default and only visible when there are images in
the mail, but that's personal taste.
Since we don't have any info on if there are even images in the mail,
the checkbox seems to be the better option.
Having it on by default doesn't change the behavior after applying the
patch, so seems to be the better option in this case.
Consider this patch:
Tested-by: Mira Limbeck <m.limbeck@proxmox.com>
next prev parent reply other threads:[~2024-02-21 14:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 11:30 [pmg-devel] [RFC PATCH pmg-api/gui] add 'view images' checkbox to quarantine view Dominik Csapak
2024-02-13 11:30 ` [pmg-devel] [RFC PATCH pmg-api 1/1] api: quarantine: allow disabling images for content Dominik Csapak
2024-02-21 14:12 ` Mira Limbeck
2024-02-13 11:30 ` [pmg-devel] [RFC PATCH pmg-gui 1/1] quarantine content: add checkbox for controlling image loading Dominik Csapak
2024-02-21 14:17 ` Mira Limbeck [this message]
2024-02-21 18:51 ` [pmg-devel] [RFC PATCH pmg-api/gui] add 'view images' checkbox to quarantine view Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e3390578-83c3-4776-9b91-29945975f9ab@proxmox.com \
--to=m.limbeck@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox