external account page impr

This commit is contained in:
Yuri Kuznetsov
2024-12-15 16:29:24 +02:00
parent e91c3ef939
commit 532a5bb37b
@@ -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('');