Skip to content
Snippets Groups Projects
Unverified Commit 42651ce7 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #510 from HumanBrainProject/bug_fix_482

fix error 482 bugfix: change template showing irrelevant region (#507)
parents fec34029 0adb673e
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,12 @@ export class SigninBanner {
}
}
resetScreenshotTaking() {
this.takingScreenshot = true
//ToDo find out better way to detect changes
setTimeout(() => this.changeDetectionRef.detectChanges())
}
disableScreenshotTaking() {
this.takingScreenshot = false
this.changeDetectionRef.detectChanges()
......
......@@ -42,7 +42,7 @@
<ng-template [ngIf]="user$ | async" [ngIfElse]="notLoggedInTmpl" let-user="ngIf">
{{ (user && user.name || 'Unnamed User').slice(0,1) }}
</ng-template>
<ng-template #notLoggedInTmpl>
<i class="fas fa-user"></i>
</ng-template>
......@@ -166,7 +166,7 @@
[ripple]="true">
</single-dataset-list-view>
</mat-list-item>
</mat-list>
</ng-template>
......@@ -176,5 +176,5 @@
*ngIf="takingScreenshot"
class="position-fixed fixed-top"
(screenshotTaking)="disableScreenshotTaking()"
(resetScreenshot)="$event? takingScreenshot = true : disableScreenshotTaking()">
(resetScreenshot)="$event? resetScreenshotTaking() : disableScreenshotTaking()">
</take-screenshot>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment