...
Add the following code to the js/custom1.js
file in your local customization package before the final })();
tags
Code Block |
---|
// hide redundant sign in alert for Rapido
app.component('prmServiceNgrsAfter', {
bindings: {
parentCtrl: '<'
},
controller: function($document,$interval) {
var vm = this;
var guest = vm.parentCtrl.jwtUtilService.isGuest();
var out;
out = $interval(function() {
if (guest) {
var rapidosignin = $document[0].querySelector('prm-service-ngrs > prm-alert-bar');
if (rapidosignin != undefined){
rapidosignin.style.display = "none";
$interval.cancel(out);
}
}
}, 100);
}
}); |
...