Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Sometimes Primo VE will display multiple sign-in links when the user is not signed-in for Rapido. The additional link can be removed by adding the following code to the Primo VE customization package.

Add the following code to the js/custom1.js file in your local customization package before the final })(); tags

// Hide redundant sign in alert for Rapido
app.component('prmServiceNgrsAfter', {
	bindings: {
		parentCtrl: '<'
	},
	controller: function($document,$timeout) {
		var vm = this;
		var guest = vm.parentCtrl.jwtUtilService.isGuest();
			$timeout(function() {
				if (guest) {
					var rapidosignin = $document[0].querySelector('prm-service-ngrs > prm-alert-bar');
					rapidosignin.style.display = "none";
				}
			}, 3000);
	}
});

Notes:

  • The script waits 3 seconds until the GetIt section is loaded into the browser so it can catch the html part and modify it.

  • If the browser loads GetIt section more than 3 seconds, the code will not hide the additional sign-in; if the browser loads the GetIt section faster than 3 seconds, the code will work but sometimes will still display the second sign-in button for a second before hiding it.

  • No labels