MOBILE-4290 login: Fix site help
QR question logic was inverted, and classes weren't applied properlymain
parent
9b182bb714
commit
e663ee1d9a
|
@ -23,7 +23,7 @@
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item [id]="'question-' + question.id + '-answer'"
|
<ion-item [id]="'question-' + question.id + '-answer'"
|
||||||
[class]="question.answer.class + 'ion-text-wrap core-login-site-help--answer'" [class.open]="isOpen(question)"
|
[class]="question.answer.class + ' ion-text-wrap core-login-site-help--answer'" [class.open]="isOpen(question)"
|
||||||
[tabindex]="isOpen(question) ? null : -1" [attr.inert]="isOpen(question) ? null : 'true'">
|
[tabindex]="isOpen(question) ? null : -1" [attr.inert]="isOpen(question) ? null : 'true'">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<p *ngIf="question.answer.format === 'text'">{{ question.answer.text }}</p>
|
<p *ngIf="question.answer.format === 'text'">{{ question.answer.text }}</p>
|
||||||
|
|
|
@ -38,7 +38,7 @@ export class CoreLoginSiteHelpComponent implements AfterViewInit, OnDestroy {
|
||||||
|
|
||||||
constructor(protected el: ElementRef<HTMLElement>) {
|
constructor(protected el: ElementRef<HTMLElement>) {
|
||||||
const getStartedTitle = Translate.instant('core.login.faqsetupsitelinktitle');
|
const getStartedTitle = Translate.instant('core.login.faqsetupsitelinktitle');
|
||||||
const canScanQR = !CoreUtils.canScanQR();
|
const canScanQR = CoreUtils.canScanQR();
|
||||||
const urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML;
|
const urlImageHtml = CoreLoginHelperProvider.FAQ_URL_IMAGE_HTML;
|
||||||
const qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML;
|
const qrCodeImageHtml = CoreLoginHelperProvider.FAQ_QRCODE_IMAGE_HTML;
|
||||||
const setupLinkHtml = `<a href="${GET_STARTED_URL}" title="${getStartedTitle}">${GET_STARTED_URL}</a>`;
|
const setupLinkHtml = `<a href="${GET_STARTED_URL}" title="${getStartedTitle}">${GET_STARTED_URL}</a>`;
|
||||||
|
|
Loading…
Reference in New Issue