diff --git a/project/ws/viewer/src/lib/plugins/practice/practice.component.scss b/project/ws/viewer/src/lib/plugins/practice/practice.component.scss
index fdef4f4b25..901f3250a9 100644
--- a/project/ws/viewer/src/lib/plugins/practice/practice.component.scss
+++ b/project/ws/viewer/src/lib/plugins/practice/practice.component.scss
@@ -874,7 +874,7 @@ $nav-height: 40px;
}
::ng-deep .section-dd-container .mat-form-field-type-mat-native-select .mat-input-element {
- padding-right: 35px;
+ padding-right: 65px;
}
::ng-deep .section-dd .mat-form-field-underline {
diff --git a/project/ws/viewer/src/lib/plugins/practice/practice.component.ts b/project/ws/viewer/src/lib/plugins/practice/practice.component.ts
index cc581f361c..73692e3607 100644
--- a/project/ws/viewer/src/lib/plugins/practice/practice.component.ts
+++ b/project/ws/viewer/src/lib/plugins/practice/practice.component.ts
@@ -552,7 +552,7 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
const setStartIndex = this.noOfQuestionsPerSet * this.currentSetNumber
const setEndIndex = setStartIndex + this.noOfQuestionsPerSet
const secQuestions = qq.slice(setStartIndex, setEndIndex)
- return secQuestions
+ return this.selectedAssessmentCompatibilityLevel < 6 ? qq : secQuestions
}
get hasNextSet(): boolean {
@@ -655,7 +655,10 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
}
}
getMultiQuestions(ids: string[]) {
- return this.quizSvc.getQuestions(ids, this.identifier).toPromise()
+ if (this.selectedAssessmentCompatibilityLevel < 6) {
+ return this.quizSvc.getQuestionsV4(ids, this.identifier).toPromise()
+ }
+ return this.quizSvc.getQuestions(ids, this.identifier).toPromise()
}
getRhsValue(question: NSPractice.IQuestionV2) {
if (question && question.qType) {
@@ -1305,6 +1308,7 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
timeSpent: timeSpent.toString(),
editorState: { options: [] },
}
+
if (sq.options.length === 0 && this.questionAnswerHash[sq.questionId]) {
const ftbAns = this.questionAnswerHash[sq.questionId][0].split(',')
ftbAns.forEach((ans: string, index) => {
@@ -1313,10 +1317,29 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
selectedAnswer: ans,
})
})
+ } else if( this.questionAnswerHash[sq.questionId]) {
+ const ftbAns = this.questionAnswerHash[sq.questionId][0].split(',')
+ ftbAns.forEach((ans: string, index) => {
+ ftb.editorState.options.push({
+ index: index.toString(),
+ selectedAnswer: ans,
+ })
+ })
}
responseQ.push(ftb)
break
case 'mtf':
+ let optionAll:any = []
+ optionAll = _.compact(_.map(sq.options, (_o: any) => {
+ if (_o.userSelected && this.questionAnswerHash[sq.questionId]) {
+ return {
+ index: (_o.optionId).toString(),
+ selectedAnswer: _o.response,
+ } as NSPractice.IResponseOptions
+ }
+ return null
+
+ }))
const mtf: NSPractice.IMCQ_MTF = {
identifier: sq.questionId,
mimeType: NsContent.EMimeTypes.QUESTION,
@@ -1328,19 +1351,7 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
timeTaken: timeSpent.toString(),
timeSpent: timeSpent.toString(),
editorState: {
- options: _.compact(_.map(sq.options, (_o: NSPractice.IOption) => {
- if (_o.userSelected) {
- return {
- index: (_o.optionId).toString(),
- selectedAnswer: _o.response,
- } as NSPractice.IResponseOptions
- }
- return {
- index: (_o.optionId).toString(),
- selectedAnswer: _o.response,
- } as NSPractice.IResponseOptions
-
- })),
+ options: optionAll.filter((o:any) => { return o.hasOwnProperty('index'); }).length > 0 ? optionAll : [],
},
}
responseQ.push(mtf)
@@ -1394,28 +1405,51 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
} else {
this.viewState = 'answer'
}
- if (this.selectedAssessmentCompatibilityLevel < 6) {
- const quizV4Res: any = await this.quizSvc.submitQuizV4(this.generateRequest).toPromise().catch(_error => {})
- if (quizV4Res && quizV4Res.params && quizV4Res.params.status.toLowerCase() === 'success') {
- if (quizV4Res.result.primaryCategory === 'Course Assessment') {
- setTimeout(() => {
- this.getQuizResult()
- }, environment.quizResultTimeout)
- } else if (quizV4Res.result.primaryCategory === 'Practice Question Set') {
- this.assignQuizResult(quizV4Res.result)
- }
- }
- } else {
- const quizV4Res: any = await this.quizSvc.submitQuizV5(this.generateRequest).toPromise().catch(_error => {})
- if (quizV4Res && quizV4Res.params && quizV4Res.params.status.toLowerCase() === 'success') {
- if (quizV4Res.result.primaryCategory === 'Course Assessment') {
- setTimeout(() => {
- this.getQuizResult()
- }, environment.quizResultTimeout)
- } else if (quizV4Res.result.primaryCategory === 'Practice Question Set') {
- this.assignQuizResult(quizV4Res.result)
- }
+
+ let allPromiseResolvedCount = 0
+ if(this.paperSections && this.paperSections.length) {
+ for(let i =0 ; i< this.paperSections.length;i++) {
+ let section = this.paperSections[i];
+ const lst = _.chunk(section.childNodes || [], 1000)
+ const prom: any[] = []
+ _.each(lst, l => {
+ prom.push(this.getMultiQuestions(l))
+ })
+ Promise.all(prom).then(qqr => {
+ console.log('qqr', qqr)
+ allPromiseResolvedCount++;
+ const question = { questions: _.flatten(_.map(qqr, 'result.questions')) }
+ const codes = _.compact(_.map(this.quizJson.questions, 'section') || [])
+ // console.log(this.quizSvc.secAttempted.value)
+ _.eachRight(question.questions, q => {
+ // const qHtml = document.createElement('div')
+ // qHtml.innerHTML = q.editorState.question
+ if (codes.indexOf(section.identifier) === -1) {
+ this.quizJson.questions.push({
+ section: section.identifier,
+ question: q.body, // qHtml.textContent || qHtml.innerText || '',
+ multiSelection: ((q.qType || '').toLowerCase() === 'mcq-mca' ? true : false),
+ questionType: (q.qType || '').toLowerCase(),
+ questionId: q.identifier,
+ instructions: null,
+ options: this.getOptions(q),
+ editorState: q.editorState,
+ questionLevel: q.questionLevel,
+ marks: q.totalMarks,
+ rhsChoices: this.getRhsValue(q),
+ })
+ }
+ })
+
+
+ if(this.paperSections && this.paperSections.length === allPromiseResolvedCount) {
+ // console.log('this.quizJson',this.quizJson)
+ // console.log('this.generateRequest',this.generateRequest)
+ this.submitAfterAllPromiseResolved();
+ }
+ })
}
+
}
// this.quizSvc.submitQuizV3(this.generateRequest).subscribe(
@@ -1448,6 +1482,32 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
// },
// )
}
+
+ async submitAfterAllPromiseResolved() {
+ if (this.selectedAssessmentCompatibilityLevel < 6) {
+ const quizV4Res: any = await this.quizSvc.submitQuizV4(this.generateRequest).toPromise().catch(_error => {})
+ if (quizV4Res && quizV4Res.params && quizV4Res.params.status.toLowerCase() === 'success') {
+ if (quizV4Res.result.primaryCategory === 'Course Assessment') {
+ setTimeout(() => {
+ this.getQuizResult()
+ }, environment.quizResultTimeout)
+ } else if (quizV4Res.result.primaryCategory === 'Practice Question Set') {
+ this.assignQuizResult(quizV4Res.result)
+ }
+ }
+ } else {
+ const quizV4Res: any = await this.quizSvc.submitQuizV5(this.generateRequest).toPromise().catch(_error => {})
+ if (quizV4Res && quizV4Res.params && quizV4Res.params.status.toLowerCase() === 'success') {
+ if (quizV4Res.result.primaryCategory === 'Course Assessment') {
+ setTimeout(() => {
+ this.getQuizResult()
+ }, environment.quizResultTimeout)
+ } else if (quizV4Res.result.primaryCategory === 'Practice Question Set') {
+ this.assignQuizResult(quizV4Res.result)
+ }
+ }
+ }
+ }
showAnswers() {
this.showMtfAnswers()
this.showFitbAnswers()
@@ -1627,15 +1687,17 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
if(this.selectedAssessmentCompatibilityLevel < 6) {
this.init()
} else {
- this.quizSvc.canAttendV5(this.identifier).subscribe(response => {
- if (response) {
- this.canAttempt = response
- // this.canAttempt = {
- // attemptsAllowed: 1,
- // attemptsMade: 0,
- // }
- }
- })
+ if(this.ePrimaryCategory.FINAL_ASSESSMENT == this.primaryCategory) {
+ this.quizSvc.canAttendV5(this.identifier).subscribe(response => {
+ if (response) {
+ this.canAttempt = response
+ // this.canAttempt = {
+ // attemptsAllowed: 1,
+ // attemptsMade: 0,
+ // }
+ }
+ })
+ }
this.retakeAssessment()
}
diff --git a/project/ws/viewer/src/lib/plugins/practice/practice.service.ts b/project/ws/viewer/src/lib/plugins/practice/practice.service.ts
index 40ba376120..43a4df6f2e 100755
--- a/project/ws/viewer/src/lib/plugins/practice/practice.service.ts
+++ b/project/ws/viewer/src/lib/plugins/practice/practice.service.ts
@@ -163,11 +163,16 @@ export class PracticeService {
const stringRemoveSlashN = this.extractContent(question.options[i].text.replace(/\n/g, '').replace(/\</g, '<').replace(/\>/g, '>'))
const idxOfSource = _.indexOf(mtfSrc[question.questionId].source, stringRemoveSlashN.replace(/<(.|\n)*?>/g, ''))
const targetId = mtfSrc[question.questionId].target[idxOfSource]
- const lastChar = targetId.slice(-1)
- if (question) {
- question.options[i].response = question.rhsChoices && question.rhsChoices[Number(lastChar) - 1]
+ if (targetId) {
+ const lastChar = targetId.slice(-1)
+ if (question && lastChar) {
+ question.options[i].response = question.rhsChoices && question.rhsChoices[Number(lastChar) - 1]
+ }
+ question.options[i].userSelected = true
+ } else {
+ question.options[i].userSelected = false
}
- question.options[i].userSelected = true
+
// }
// }
} else {
diff --git a/project/ws/viewer/src/lib/viewer.component.ts b/project/ws/viewer/src/lib/viewer.component.ts
index 97216da0c0..cecec14f6a 100755
--- a/project/ws/viewer/src/lib/viewer.component.ts
+++ b/project/ws/viewer/src/lib/viewer.component.ts
@@ -261,9 +261,11 @@ export class ViewerComponent implements OnInit, OnDestroy, AfterViewChecked {
})
if (this.collectionId) {
- const enrollCourseData = JSON.parse((localStorage.getItem('enrollmentMapData') as any))[this.collectionId]
- if (enrollCourseData && (enrollCourseData.completionPercentage === 100 || enrollCourseData.status === 2)) {
- this.downloadCertificate(enrollCourseData)
+ if (!this.forPreview) {
+ const enrollCourseData = JSON.parse((localStorage.getItem('enrollmentMapData') as any))[this.collectionId]
+ if (enrollCourseData && (enrollCourseData.completionPercentage === 100 || enrollCourseData.status === 2)) {
+ this.downloadCertificate(enrollCourseData)
+ }
}
}
}
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 2b3ac4b906..35c85feedc 100755
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -841,6 +841,15 @@ const routes: Routes = [
},
canActivate: [GeneralGuard],
},
+ {
+ path: 'learner-advisory',
+ component: LearnerAdvisoryComponent,
+ canActivate: [GeneralGuard],
+ // data: {
+ // module: 'learner-advisory',
+ // // pageId: 'page/learner-advisory',
+ // },
+ },
{
path: 'page/explore/:tags',
data: {
@@ -953,14 +962,7 @@ const routes: Routes = [
pageId: 'public/privacy-policy',
},
},
- {
- path: 'public/learner-advisory',
- component: LearnerAdvisoryComponent,
- data: {
- module: 'learner-advisory',
- pageId: 'public/learner-advisory',
- },
- },
+
{
path: 'public/google/sso',
component: PublicLoginWGComponent,
diff --git a/src/app/component/client-slider/client-slider.component.html b/src/app/component/client-slider/client-slider.component.html
index e145da40e9..612508c59a 100644
--- a/src/app/component/client-slider/client-slider.component.html
+++ b/src/app/component/client-slider/client-slider.component.html
@@ -7,7 +7,7 @@
{{ 'home.topProviderSliders' | translate }}
-
+
-
-

-
-
{{'learnerAdvisory.useGyaanKarmayogi' | translate}}
+
+

+
+
+
{{randomlearnAdvisoryObj.content}}
+
- 1/13
+ {{randomlearnAdvisoryObj.id}}/{{learnAdvisoryDataLength}}
+
-->
+
+
+
-
+
-
Upcoming Assessment
+
+ Upcoming Assessment
+ [routerLink]="['/app/discussion-forum']">START
desktop_mac
@@ -76,7 +96,8 @@
Tips for Learners
{{ credMessage }}
- {{showCreds ? 'keyboard_arrow_up' : 'keyboard_arrow_down'}}
+ {{showCreds ?
+ 'keyboard_arrow_up' : 'keyboard_arrow_down'}}
@@ -84,14 +105,16 @@
Tips for Learners
Username
{{assessmentsData.userName}}
- content_copy
+ content_copy
Password
{{assessmentsData.password}}
- content_copy
+ content_copy
@@ -128,27 +151,66 @@
Tips for Learners
-
+
{{ 'home.myDiscussions' | translate }}
-
+
chevron_right
-
+
-
-
+
+
\ No newline at end of file
diff --git a/src/app/component/in-sight-side-bar/in-sight-side-bar.component.scss b/src/app/component/in-sight-side-bar/in-sight-side-bar.component.scss
index b19dfc54cd..f328ed519b 100644
--- a/src/app/component/in-sight-side-bar/in-sight-side-bar.component.scss
+++ b/src/app/component/in-sight-side-bar/in-sight-side-bar.component.scss
@@ -143,18 +143,21 @@
.tip-content {
display: flex;
justify-content: space-between;
- align-items: center;
+ // align-items: center;
z-index: 10;
+ padding-top: 6px;
+ margin-bottom: 8px;
}
.tip-content p {
- margin-left: 10px;
+ margin-left: 8px;
color: #000000;
font-family: Lato;
font-size: 14px;
z-index: 10;
- padding: 5px;
- line-height: 16.8px;
+ padding: 0px 4px;
+ line-height: 16px;
+ word-break: break-all;
}
.tip-count {
@@ -165,11 +168,25 @@
font-family : Montserrat !important;
font-size: 16px !important;
padding: 10px 3px;
- align-self: flex-end;
- border-radius: 50% 0 0 50%;
+ // align-self: flex-end;
+ // border-radius: 50% 0 0 50%;
z-index: 10;
font-weight: 600;
line-height: 19.5px;
+ width:45px;
+ }
+ .tip-data {
+ width: calc(100% - 110px);
+ }
+ .view-more {
+ display: flex;
+ align-items: center;
+ text-align: center;
+ height: 40px;
+ justify-content: center;
+}
+ .view-more:hover {
+ background-color: #DCDFE5;
}
.background-circle {
@@ -196,7 +213,8 @@
}
.background{
background-color: white;
- width: 56px;
+ width: 55px;
height: 42px;
border-radius: 5px;
+ text-align: center;
}
\ No newline at end of file
diff --git a/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts b/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts
index 3d35ed76c1..76dcc4036e 100644
--- a/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts
+++ b/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts
@@ -75,6 +75,9 @@ export class InsightSideBarComponent implements OnInit {
assessmentsData: any
isLeaderboardExist = false
assessmentStrip: any
+ learnAdvisoryData: any
+ randomlearnAdvisoryObj: any
+ learnAdvisoryDataLength: any
constructor(
private homePageSvc: HomePageService,
@@ -96,11 +99,15 @@ export class InsightSideBarComponent implements OnInit {
this.userData = this.configSvc && this.configSvc.userProfile
if (this.activatedRoute.snapshot.data.pageData && this.activatedRoute.snapshot.data.pageData.data) {
this.homePageData = this.activatedRoute.snapshot.data.pageData.data
+ this.learnAdvisoryData = this.activatedRoute.snapshot.data.pageData.data.learnerAdvisory
}
+
+ // this.learnAdvisoryDataLength = this.learnAdvisoryData.length
this.getInsights()
this.getPendingRequestData()
this.noDataValue = noData
this.getDiscussionsData()
+ // this.displayRandomlearnAdvisoryData()
if (this.activatedRoute.snapshot.data.pageData && this.activatedRoute.snapshot.data.pageData.data.assessmentData) {
this.assessmentStrip = this.activatedRoute.snapshot.data.pageData.data.assessmentData
@@ -109,6 +116,11 @@ export class InsightSideBarComponent implements OnInit {
// this.getAssessmentData()
}
+ // displayRandomlearnAdvisoryData(): void {
+ // const randomIndex = Math.floor(Math.random() * this.learnAdvisoryData.length)
+ // this.randomlearnAdvisoryObj = this.learnAdvisoryData[randomIndex]
+ // }
+
getInsights() {
this.profileDataLoading = true
const request = {
@@ -334,7 +346,5 @@ export class InsightSideBarComponent implements OnInit {
duration,
})
}
- showAllTips() {
- this.router.navigate(['public/learner-advisory'])
- }
+
}
diff --git a/src/app/component/root/root.component.ts b/src/app/component/root/root.component.ts
index b4529a6e36..92c00b9c97 100755
--- a/src/app/component/root/root.component.ts
+++ b/src/app/component/root/root.component.ts
@@ -340,7 +340,7 @@ export class RootComponent implements OnInit, AfterViewInit, AfterViewChecked {
this.showNavbar = true
this.isNavBarRequired = true
}
- if (window.location.pathname.includes('/public/learner-advisory')) {
+ if (window.location.pathname.includes('/learner-advisory')) {
this.showNavbar = true
this.isNavBarRequired = true
this.showBottomNav = true
diff --git a/src/app/home/home.module.ts b/src/app/home/home.module.ts
index e9b50ed48f..685e6a5c73 100644
--- a/src/app/home/home.module.ts
+++ b/src/app/home/home.module.ts
@@ -15,6 +15,7 @@ import { SkeletonLoaderModule } from '@sunbird-cb/collection/src/lib/_common/ske
import { ProfileCardStatsModule } from '@sunbird-cb/collection/src/lib/_common/profile-card-stats/profile-card-stats.module'
import { PipeRelativeTimeModule } from '@sunbird-cb/utils-v2'
import { WeeklyClapsModule } from '@sunbird-cb/collection/src/lib/_common/weekly-claps/weekly-claps.module'
+import { TipsForLearnerModule } from '@sunbird-cb/collection/src/lib/_common/tips-for-learner/tips-for-learner.module'
import { UpdatePostsModule } from '@sunbird-cb/collection/src/lib/_common/update-posts/update-posts.module'
import { DiscussionsModule } from '@sunbird-cb/collection/src/lib/_common/discussions/discussions.module'
import { RecentRequestsModule } from '@sunbird-cb/collection/src/lib/_common/recent-requests/recent-requests.module'
@@ -63,6 +64,7 @@ import { ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule } from '
UserLeaderboardModule,
MatIconModule,
WeeklyClapsModule,
+ TipsForLearnerModule,
UpdatePostsModule,
DiscussionsModule,
RecentRequestsModule,
diff --git a/src/app/home/home/home.component.ts b/src/app/home/home/home.component.ts
index ecb7f41cdb..3eb28b41b2 100644
--- a/src/app/home/home/home.component.ts
+++ b/src/app/home/home/home.component.ts
@@ -379,6 +379,7 @@ export class HomeComponent implements OnInit, AfterViewInit {
}
fetchProfile() {
+ this.handleMDOMsgstatus()
this.router.navigate(['/app/person-profile/me'])
}
@@ -438,7 +439,7 @@ export class HomeComponent implements OnInit, AfterViewInit {
}
this.userProfileService.editProfileDetails(reqUpdates).subscribe((res: any) => {
if (res) {
-
+ this.isMDOMsgOpen = true
}
}, (error: HttpErrorResponse) => {
if (!error.ok) {
diff --git a/src/app/learner-advisory/learner-advisory.component.html b/src/app/learner-advisory/learner-advisory.component.html
index 4ecc3e2933..fb574352ee 100644
--- a/src/app/learner-advisory/learner-advisory.component.html
+++ b/src/app/learner-advisory/learner-advisory.component.html
@@ -1,7 +1,10 @@
+
+
+
+

+
-
-

-
+

diff --git a/src/app/learner-advisory/learner-advisory.component.scss b/src/app/learner-advisory/learner-advisory.component.scss
index 54ed4c323c..4a05670025 100644
--- a/src/app/learner-advisory/learner-advisory.component.scss
+++ b/src/app/learner-advisory/learner-advisory.component.scss
@@ -1,16 +1,22 @@
.tips-container {
- max-width: 900px;
+ max-width: 800px;
+ width: 800px;
margin: 0 auto;
- padding: 20px;
+ // padding: 20px;
background-color: #f3f4f6;
+
+ @media only screen and (max-width: 768px) {
+ width: 100%;
+ padding: 0px 0.5rem;
+ }
}
.banner img {
- padding: 1px;
+ // padding: 1px;
border-radius: 8px;
- width: 100vw;
- margin-left: calc(-50vw + 50%);
- margin-right: calc(-50vw + 50%);
+ width: 100%;
+ // margin-left: calc(-50vw + 50%);
+ // margin-right: calc(-50vw + 50%);
}
.tips-list {
margin-top: 20px;
diff --git a/src/app/learner-advisory/learner-advisory.component.ts b/src/app/learner-advisory/learner-advisory.component.ts
index b7d3184d32..5450b4de2c 100644
--- a/src/app/learner-advisory/learner-advisory.component.ts
+++ b/src/app/learner-advisory/learner-advisory.component.ts
@@ -7,9 +7,13 @@ import { Component, OnInit } from '@angular/core'
})
export class LearnerAdvisoryComponent implements OnInit {
+ titles = [
+ { title: 'Tips for Learners', url: 'none', icon: '' },
+ ]
constructor() { }
ngOnInit() {
+
}
}
diff --git a/src/app/routes/public/public-logout/public-logout.component.html b/src/app/routes/public/public-logout/public-logout.component.html
index fd20ff365f..a51d43c385 100644
--- a/src/app/routes/public/public-logout/public-logout.component.html
+++ b/src/app/routes/public/public-logout/public-logout.component.html
@@ -1,23 +1,18 @@
+ style="background: url(/assets/instances/eagle/banners/home/9/BG.png) center center fixed;">
-
+
-
+
+
-
@@ -25,6 +20,11 @@
+
-->
+
+
+

+
diff --git a/src/app/routes/public/public-logout/public-logout.component.scss b/src/app/routes/public/public-logout/public-logout.component.scss
index 509d6aa2b9..fbb3bae3ce 100644
--- a/src/app/routes/public/public-logout/public-logout.component.scss
+++ b/src/app/routes/public/public-logout/public-logout.component.scss
@@ -22,11 +22,23 @@
}
}
+// .left_container {
+// padding: 5rem 6rem;
+// box-sizing: border-box;
+// width: 55%;
+// height: 100vh;
+
+// @include breakpoint-xs {
+// display: none !important;
+// }
+// }
.left_container {
- padding: 5rem 6rem;
- box-sizing: border-box;
- width: 55%;
- height: 100vh;
+ flex: 1;
+ // display: flex;
+ // align-items: center;
+ // justify-content: center;
+ position: relative;
+ max-width: 100%;
@include breakpoint-xs {
display: none !important;
@@ -124,3 +136,16 @@ width:300px;
text-decoration: underline;
cursor: pointer;
}
+
+.features-image {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+.features-image img {
+ max-width: 90%;
+ // position: absolute;
+ // top: 10%;
+ // // left: 50%;
+ // transform: translate(-50%, -50%);
+}
diff --git a/src/app/services/init.service.ts b/src/app/services/init.service.ts
index 73e3a70aac..c679e19b2f 100755
--- a/src/app/services/init.service.ts
+++ b/src/app/services/init.service.ts
@@ -651,6 +651,10 @@ export class InitService {
const publicConfig = await this.http
.get
(`${this.configSvc.sitePath}/site.config.json`)
.toPromise()
+ if (publicConfig.npsCategory) {
+ localStorage.setItem('npsCategory', publicConfig.npsCategory)
+ }
+
this.configSvc.instanceConfig = publicConfig
this.configSvc.rootOrg = publicConfig.rootOrg
this.configSvc.org = publicConfig.org
@@ -843,7 +847,13 @@ export class InitService {
localStorage.platformratingTime = currentTime
localStorage.setItem('ratingformID', JSON.stringify(item.data.actionData.formId))
localStorage.setItem('ratingfeedID', JSON.stringify(feedId))
-
+ } else if (item.category === 'NPS2' && item && item.data && item.data.actionData && item.data.actionData.formId) {
+ feedId.push(item.id)
+ // console.log(feedId, "feed id items============")
+ const currentTime = moment()
+ localStorage.platformratingTime = currentTime
+ localStorage.setItem('ratingformID', JSON.stringify(item.data.actionData.formId))
+ localStorage.setItem('ratingfeedID', JSON.stringify(feedId))
}
})
}