Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding Intercom functionality in mobile app #1511

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions apps/mobile-mzima-client/src/app/profile/profile/profile.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,18 @@
title="Help and Support"
(modalClose)="isSupportModalOpen = false"
>
<ng-container *ngIf="filteredSupportItems.length; else emptySupportItems">
<ion-item
class="list-item"
button
lines="none"
*ngFor="let supportItem of filteredSupportItems"
>
<div (click)="supportItem.action()">
<span class="list-item__title">{{ supportItem.title }}</span>
<ion-text class="list-item__description" color="medium"
>{{ supportItem.description }}</ion-text
>
<ng-container>
<ion-item class="list-item" lines="none">
<div>
<span class="list-item__title">{{"app.contact_support" | translate}}</span>
<ion-text class="list-item__description" color="medium">
{{"app.contact_support_desc_1" |translate}}
<a href="https://www.ushahidi.com/support/" target="_blank"
>{{"app.contact_support_desc_2" | translate}}</a
>
{{"app.contact_support_desc_3" | translate}}
</ion-text>
</div>
<app-icon class="list-item__details" slot="end" name="arrow-right"></app-icon>
</ion-item>
</ng-container>
<ng-template #emptySupportItems>
<ion-text color="medium" class="empty ion-text-center">
{{"app.nothing_found" | translate}}
</ion-text>
</ng-template>
</app-modal>
17 changes: 9 additions & 8 deletions apps/mobile-mzima-client/src/app/profile/profile/profile.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ export class ProfilePage {
this.profileMenu = profileMenu.profileMenu.filter(
(i) => i.isLoggedGuard === undefined || i.isLoggedGuard === !!userData.userId,
);
if (userData.userId)
this.supportItems.push(<SupportItem>{
title: 'Intercom',
description: 'Contact Ushahidi staff for chat support',
action: () => {
this.intercomService.displayMessenger();
},
});
// if (userData.userId) {
// this.supportItems.push(<SupportItem>{
// title: 'Intercom',
// description: 'Contact Ushahidi staff for chat support',
// action: () => {
// this.intercomService.displayMessenger();
// },
// });
// }
});
}

Expand Down
6 changes: 5 additions & 1 deletion apps/mobile-mzima-client/src/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
"my_posts_desc":"Post you’ve created",
"logout" : "Logout",
"login_register":"Log in or Sign up",
"add_edit_collection":"Add or Edit collections"
"add_edit_collection":"Add or Edit collections",
"contact_support":"Contact Support",
"contact_support_desc_1":"Head over to ",
"contact_support_desc_2": "our support-pages",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could remove the hyphen to read "our support pages" but its all good!🎉

"contact_support_desc_3": "to get help with Ushahidi."
}
}
Loading