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('');