|
Lines 60-62
const { removeMessages } = mainStore;
Link Here
|
| 60 |
router.beforeEach((to, from) => { |
60 |
router.beforeEach((to, from) => { |
| 61 |
removeMessages(); // This will actually flag the messages as displayed already |
61 |
removeMessages(); // This will actually flag the messages as displayed already |
| 62 |
}); |
62 |
}); |
| 63 |
- |
63 |
router.afterEach((to, from) => { |
|
|
64 |
let tab_id = 1; // Agreements |
| 65 |
if ( to.path.match(/\/erm\/eholdings\/local\/titles/)){ |
| 66 |
tab_id = 2; |
| 67 |
} else if ( to.path.match(/\/erm\/eholdings\/local\/packages/)){ |
| 68 |
tab_id = 3; |
| 69 |
} |
| 70 |
document.getElementById('ui-id-' + tab_id).click(); |
| 71 |
}) |