From 76bb62274c4470eddbd32a5a2f6e368627a267d7 Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 3 Mar 2025 21:03:08 +0100 Subject: [PATCH] transformTagsLabels correctly imported --- js/mzta-placeholders.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/mzta-placeholders.js b/js/mzta-placeholders.js index 65bce34a..3c87be15 100644 --- a/js/mzta-placeholders.js +++ b/js/mzta-placeholders.js @@ -32,6 +32,8 @@ */ +import { transformTagsLabels } from './mzta-utils.js'; + const defaultPlaceholders = [ { id: 'mail_text_body', @@ -160,6 +162,9 @@ export async function getPlaceholders(onlyEnabled = false){ output.sort((a, b) => a.id.localeCompare(b.id)); } // console.log('>>>>>>>>>>>> getPlaceholders output: ' + JSON.stringify(output)); + if (!await browser.permissions.contains({ permissions: ["messagesTagsList"] })) { + output = output.filter(obj => obj.id !== 'tags_full_list' && obj.id !== 'tags_current_email'); + } return output; }