Über Open CoDE Software Wiki Diskussionen GitLab

Skip to content
Commits on Source (2)
## [1.8.2](https://gitlab.opencode.de/bmi/opendesk/components/platform-development/images/opendesk-nubus-portal-update/compare/v1.8.1...v1.8.2) (2024-10-24)
### Bug Fixes
* Do not redirect route names with 'selfservice' to SSO login page for anon users ([7a3fe4b](https://gitlab.opencode.de/bmi/opendesk/components/platform-development/images/opendesk-nubus-portal-update/commit/7a3fe4b36ec5113f3beceb37240ef014bf78a0b2))
## [1.8.1](https://gitlab.opencode.de/bmi/opendesk/components/platform-development/images/opendesk-nubus-portal-update/compare/v1.8.0...v1.8.1) (2024-10-14)
......
......@@ -90,7 +90,11 @@ export default defineComponent({
}
if (answer.portal && answer.portal.ensureLogin && !this.userState.username) {
login(this.userState);
// fix: Do not redirect to SSO login page if user is anon
// and want to access selfservice routes inside Vue application.
if (!this.$route.name?.toString().startsWith('selfservice')) {
login(this.userState);
}
}
this.$store.dispatch('deactivateLoadingState');
......
......@@ -55,17 +55,9 @@ export default defineComponent({
},
computed: {
...mapGetters({
userState: 'user/userState',
activeButton: 'navigation/getActiveButton',
portalFinalLayoutFiltered: 'portalData/portalFinalLayoutFiltered',
}),
userNameAbbreviation(): string {
const displayNameParts = this.userState.displayName.split('.');
if (displayNameParts.length > 0) {
return `${displayNameParts.map((p: string) => p.charAt(0)).join('')}`;
}
return '';
},
},
});
</script>
......
......@@ -23,8 +23,8 @@ export default defineComponent({
currentLocale: 'locale/getLocale',
}),
userFirstname(): string {
const displayNameParts = this.userState.displayName.split('.');
if (displayNameParts.length > 0) {
const displayNameParts = this.userState.displayName?.split('.');
if (displayNameParts && displayNameParts.length > 0) {
return `${displayNameParts[0]}`;
}
return '';
......
......@@ -37,8 +37,8 @@ export default defineComponent({
userState: 'user/userState',
}),
userNameAbbreviation(): string {
const displayNameParts = this.userState.displayName.split('.');
if (displayNameParts.length > 0) {
const displayNameParts = this.userState.displayName?.split('.');
if (displayNameParts && displayNameParts.length > 0) {
return `${displayNameParts.map((p: string) => p.charAt(0)).join('')}`;
}
return '';
......