diff --git a/ng8-seed/src/app/components/project-detail/project-detail.component.html b/ng8-seed/src/app/components/project-detail/project-detail.component.html index 3305b94..1129eb4 100644 --- a/ng8-seed/src/app/components/project-detail/project-detail.component.html +++ b/ng8-seed/src/app/components/project-detail/project-detail.component.html @@ -15,6 +15,18 @@ School Details --> +
+ Share: + +
@@ -206,8 +218,8 @@
--> -
-
+
+
diff --git a/ng8-seed/src/app/components/project-detail/project-detail.component.ts b/ng8-seed/src/app/components/project-detail/project-detail.component.ts index 5b1cda5..bcb27b5 100644 --- a/ng8-seed/src/app/components/project-detail/project-detail.component.ts +++ b/ng8-seed/src/app/components/project-detail/project-detail.component.ts @@ -5,6 +5,7 @@ import { FormBuilder } from '@angular/forms'; import { Router, ActivatedRoute } from '@angular/router'; import { SchoolDetailsService } from 'app/shared/school-details.service'; import { MatTableDataSource, MatPaginator } from '@angular/material'; +import { PlatformLocation } from '@angular/common'; @Component({ selector: 'app-project-detail', @@ -35,9 +36,10 @@ export class ProjectDetailComponent implements OnInit { clientWidth: any; @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator; contribute_type:any='' + encryptedUser: any; // types_of_funds=['State Fund','District Fund','School common Fund','For this Project'] - constructor(public restApi:ApiService,public fb:FormBuilder,public router:Router,public schInfo:SchoolDetailsService,private activatedRoute:ActivatedRoute) { } + constructor(public restApi:ApiService,public fb:FormBuilder,public router:Router,public schInfo:SchoolDetailsService,private activatedRoute:ActivatedRoute,private platformLocation: PlatformLocation) { } ngOnInit() { let data=this.activatedRoute.snapshot.paramMap.get('schoolreqid') @@ -54,6 +56,11 @@ export class ProjectDetailComponent implements OnInit { else{ this.getSchoolReqList(this.schoolInfo.school_id); } + + this.encryptedUser=this.platformLocation['href']; + // this.encryptedUser='https://contribute.tnschools.gov.in/csr/#/home/project-detail;schoolreqid=16640' + // console.log(enc_param,atob(enc_param)); + console.log(this.platformLocation['href']) } applyFilter(filterValue: string) { this.dataSource.filter = filterValue.trim().toLowerCase(); diff --git a/ng8-seed/src/app/components/user-certificate/user-certificate.component.html b/ng8-seed/src/app/components/user-certificate/user-certificate.component.html index 99080a6..0d4620b 100644 --- a/ng8-seed/src/app/components/user-certificate/user-certificate.component.html +++ b/ng8-seed/src/app/components/user-certificate/user-certificate.component.html @@ -46,7 +46,7 @@

- in acknowledgement of the valuable contribution made towards
improvement of Government schools in Tamil Nadu

+ in acknowledgement of the valuable contribution made towards
improvement of Government Schools in Tamil Nadu
through https://contribute.tnschools.gov.in


diff --git a/ng8-seed/src/app/dashboard/dashboard.module.ts b/ng8-seed/src/app/dashboard/dashboard.module.ts index 753a69e..9329f37 100644 --- a/ng8-seed/src/app/dashboard/dashboard.module.ts +++ b/ng8-seed/src/app/dashboard/dashboard.module.ts @@ -19,6 +19,7 @@ import {FooterComponent} from 'app/components/footer/footer.component' import { SlickCarouselModule } from 'ngx-slick-carousel'; import { OnlyNumberDirective } from 'app/directives/only-number.directive'; import { DirectivesModuleModule } from 'app/directives/directives-module/directives-module.module'; +import { ShareButtonsModule } from '@ngx-share/buttons'; @NgModule({ @@ -48,7 +49,8 @@ import { DirectivesModuleModule } from 'app/directives/directives-module/directi MatButtonToggleModule, MatTabsModule, MatPaginatorModule, - DirectivesModuleModule + DirectivesModuleModule, + ShareButtonsModule ], declarations: [ DashboardComponent,ProjectListComponent,ProjectDetailComponent ] })