transformTagsLabels correctly imported
This commit is contained in:
parent
a1f1f84aee
commit
76bb62274c
1 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,8 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { transformTagsLabels } from './mzta-utils.js';
|
||||||
|
|
||||||
const defaultPlaceholders = [
|
const defaultPlaceholders = [
|
||||||
{
|
{
|
||||||
id: 'mail_text_body',
|
id: 'mail_text_body',
|
||||||
|
|
@ -160,6 +162,9 @@ export async function getPlaceholders(onlyEnabled = false){
|
||||||
output.sort((a, b) => a.id.localeCompare(b.id));
|
output.sort((a, b) => a.id.localeCompare(b.id));
|
||||||
}
|
}
|
||||||
// console.log('>>>>>>>>>>>> getPlaceholders output: ' + JSON.stringify(output));
|
// 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;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue