diff --git a/src/app/pages/home/home.page.html b/src/app/pages/home/home.page.html
index 19c7858..9e766b3 100644
--- a/src/app/pages/home/home.page.html
+++ b/src/app/pages/home/home.page.html
@@ -58,7 +58,7 @@
diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts
index 4d9dfee..27055e4 100644
--- a/src/app/pages/home/home.page.ts
+++ b/src/app/pages/home/home.page.ts
@@ -132,7 +132,9 @@ export class HomePage implements OnInit {
this.router.navigate([pageToNavigate],{state: item} );
}
-
+allBlog(){
+ this.router.navigate(['allblog']);
+}
onNotification() {
this.router.navigate(['notification']);
diff --git a/src/app/pages/invite/invite.page.html b/src/app/pages/invite/invite.page.html
index aa2949a..981f2d1 100644
--- a/src/app/pages/invite/invite.page.html
+++ b/src/app/pages/invite/invite.page.html
@@ -31,17 +31,17 @@
-
+
-
-
+
+
-
-
+
+
diff --git a/src/app/pages/invite/invite.page.scss b/src/app/pages/invite/invite.page.scss
index 65c9e12..dc097b0 100644
--- a/src/app/pages/invite/invite.page.scss
+++ b/src/app/pages/invite/invite.page.scss
@@ -13,9 +13,10 @@ ion-item {
font-size: 22px;
}
}
+ion-card{
+ margin: 0px;
+}
ion-header {
-
-
ion-toolbar {
--background: var(--ion-color-primary);
diff --git a/src/app/pages/invite/invite.page.ts b/src/app/pages/invite/invite.page.ts
index a3b345a..9ccf4d0 100644
--- a/src/app/pages/invite/invite.page.ts
+++ b/src/app/pages/invite/invite.page.ts
@@ -4,6 +4,7 @@ import {Router} from "@angular/router";
import { WrenchService } from 'src/app/services/wrench.service';
import {SessionDataProviderService} from "../../store/session-data-provider.service";
import {last} from "rxjs/operators";
+import { AlertController } from '@ionic/angular';
@Component({
selector: 'app-invite',
@@ -21,7 +22,8 @@ export class InvitePage implements OnInit {
private navctr: NavController,
private router: Router,
public sessionDataProviderService: SessionDataProviderService,
- private wrenchService: WrenchService
+ private wrenchService: WrenchService,
+ private alertController: AlertController
) {
}
/*
@@ -40,6 +42,7 @@ export class InvitePage implements OnInit {
sendRefer(){
if (this.ref_firstname=="" || this.lastname=="" || !this.validateEmail(this.email) ){
+ this.showAlert('Refer Error', 'Email and names required');
return;
}
this.referSendData =
@@ -97,4 +100,24 @@ export class InvitePage implements OnInit {
);
}
+
+ async showAlert(mtitle: string, amessage: string) {
+
+ const alert = await this.alertController.create({
+ header: 'WrenchBoard',
+ subHeader: mtitle,
+ message: amessage,
+ buttons: ['OK'],
+ });
+
+ await alert.present();
+ //
+ // let alert = this.alertCtrl.create({
+ // title: mtitle,
+ // subTitle: amessage,
+ // buttons: ['OK']
+ // });
+ // alert.present();
+ // // alert(amessage);
+ }
}
diff --git a/src/global.scss b/src/global.scss
index ac4d642..cf05c18 100644
--- a/src/global.scss
+++ b/src/global.scss
@@ -124,4 +124,5 @@ ion-modal.custom_modal_bottom {
font-size: 20px;
font-family: 'bold';
color:green;
-}
\ No newline at end of file
+}
+