Skip to content

Commit

Permalink
Merge pull request #787 from weni-ai/feature/pre-production-deploy-21…
Browse files Browse the repository at this point in the history
…-set-2023

fix: added real org name
  • Loading branch information
cristiantela authored Sep 27, 2023
2 parents e45085f + 5d81171 commit 5582b29
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions src/views/register/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
`profile.about_you.pre_title_${
haveBeenInvited ? 'invited' : 'new'
}`,
{ organization: 'Organization Name' },
{ organization: savedOrgName },
)
"
></span>
Expand Down Expand Up @@ -184,24 +184,28 @@
`register.modals.${
haveBeenInvited ? 'entered_project' : 'created_project'
}.title`,
{ organization: 'Organization Name' },
{ organization: savedOrgName },
)
"
persistent
>
<img slot="icon" src="../../assets/IMG-9959-with-background.png" />

<div
v-if="haveBeenInvited"
v-html="$t(`register.modals.entered_project.description.role_${3}`)"
v-if="haveBeenInvited && [2, 3, 4].includes(savedOrgAuthorization)"
v-html="
$t(
`register.modals.entered_project.description.role_${savedOrgAuthorization}`,
)
"
></div>

<unnnic-button-next
@click.prevent="
haveBeenInvited
? $router.push({
name: 'projects',
params: { orgUuid: 'any' },
params: { orgUuid: savedOrgUuid },
})
: $router.push({
name: 'home',
Expand Down Expand Up @@ -378,10 +382,25 @@ export default {
...mapGetters(['currentProject']),
haveBeenInvited() {
return !!this.$store.state.Account.additionalInformation.data
return !!this.$store.state.Account.additionalInformation.data?.company
?.company_name;
},
savedOrgName() {
return this.$store.state.Account.additionalInformation.data?.organization
?.name;
},
savedOrgAuthorization() {
return this.$store.state.Account.additionalInformation.data?.organization
?.authorization;
},
savedOrgUuid() {
return this.$store.state.Account.additionalInformation.data?.organization
?.uuid;
},
pages() {
if (this.haveBeenInvited) {
return ['personal'];
Expand Down Expand Up @@ -439,7 +458,7 @@ export default {
company_sector,
number_people,
weni_helps,
} = this.$store.state.Account.additionalInformation.data;
} = this.$store.state.Account.additionalInformation.data?.company || {};
return {
company: {
Expand Down

0 comments on commit 5582b29

Please sign in to comment.