From 8189e3b172cb42ebe112a7e6049562bf00dc6fa5 Mon Sep 17 00:00:00 2001 From: ViktorF Date: Tue, 17 Oct 2023 12:39:51 +0300 Subject: [PATCH] TMET-9471. Fixed wrike integration for different localization --- src/in-page-scripts/integrations/wrike.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/in-page-scripts/integrations/wrike.ts b/src/in-page-scripts/integrations/wrike.ts index 93c47313..6a1850c6 100644 --- a/src/in-page-scripts/integrations/wrike.ts +++ b/src/in-page-scripts/integrations/wrike.ts @@ -29,8 +29,8 @@ class Wrike implements WebToolIntegration { getIssue(issueElement: HTMLElement, source: Source): WebToolIssue { const issueNameElement = $$.try('wrike-task-title, work-item-title', issueElement); // new design let issueName = $$.try('textarea.title-field, textarea.title__field', issueElement).value || issueNameElement.textContent; - let attr = $$.try('work-item-type', issueElement)?.querySelector('button[aria-label]')?.getAttribute('aria-label');; - if (!attr || !/Task/.test(attr)) { + let attr = $$.try('work-item-type', issueElement)?.querySelector('svg[aria-label]')?.getAttribute('aria-label');; + if (!attr || !/task/.test(attr)) { issueName = ""; } if (!issueName) {