Skip to content

Commit

Permalink
Removing intercom-window from app
Browse files Browse the repository at this point in the history
  • Loading branch information
Angamanga committed Jan 17, 2025
1 parent ac957b4 commit 00aed98
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
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",
"contact_support_desc_3": "to get help with Ushahidi."
}
}

0 comments on commit 00aed98

Please sign in to comment.