From 532a5bb37b9dd6e200ae665f73596bb99ebee810 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 15 Dec 2024 16:29:24 +0200 Subject: [PATCH] external account page impr --- client/src/views/external-account/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/client/src/views/external-account/index.js b/client/src/views/external-account/index.js index 1bfdbd8278..fbd595107c 100644 --- a/client/src/views/external-account/index.js +++ b/client/src/views/external-account/index.js @@ -94,9 +94,25 @@ class ExternalAccountIndex extends View { Espo.Ui.notify(false); $(window).scrollTop(0); + + this.controlCurrentLink(id); }); } + controlCurrentLink() { + const id = this.integration; + + this.element.querySelectorAll('.external-account-link').forEach(element => { + element.classList.remove('disabled', 'text-muted'); + }); + + const currentLink = this.element.querySelector(`.external-account-link[data-id="${id}"]`); + + if (currentLink) { + currentLink.classList.add('disabled', 'text-muted'); + } + } + renderDefaultPage() { $('#external-account-header').html('').hide(); $('#external-account-content').html('');