external account page impr
This commit is contained in:
@@ -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('');
|
||||
|
||||
Reference in New Issue
Block a user