limit manual bundle upload to JSON files
make sure header hidden on login and signup pages.
This commit is contained in:
parent
14fd443dc4
commit
a37bdd9859
|
@ -1,4 +1,5 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import {Router} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
@ -12,12 +13,27 @@ export class AppComponent implements OnInit {
|
||||||
showHeader:boolean = true;
|
showHeader:boolean = true;
|
||||||
showFooter:boolean = true;
|
showFooter:boolean = true;
|
||||||
|
|
||||||
|
constructor(private router: Router) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
// navbar backdrop for mobile only
|
// navbar backdrop for mobile only
|
||||||
const navbarBackdrop = document.createElement('div');
|
const navbarBackdrop = document.createElement('div');
|
||||||
navbarBackdrop.classList.add('az-navbar-backdrop');
|
navbarBackdrop.classList.add('az-navbar-backdrop');
|
||||||
document.querySelector('body').appendChild(navbarBackdrop);
|
document.querySelector('body').appendChild(navbarBackdrop);
|
||||||
|
|
||||||
|
|
||||||
|
//determine if we should show the header
|
||||||
|
this.router.events.subscribe(event => this.modifyHeader(event));
|
||||||
|
}
|
||||||
|
|
||||||
|
modifyHeader(location) {
|
||||||
|
if(location.url.startsWith('/auth'))
|
||||||
|
{
|
||||||
|
this.showHeader = false;
|
||||||
|
} else {
|
||||||
|
this.showHeader = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
<h2 class="az-content-title mg-t-40">Medical Record Sources</h2>
|
<h2 class="az-content-title mg-t-40">Medical Record Sources</h2>
|
||||||
|
|
||||||
<div class="az-content-label mg-b-5">Manual Upload</div>
|
<div class="az-content-label mg-b-5">Manual Upload</div>
|
||||||
<p class="mg-b-20">Fasten also supports manually uploaded electronic medical records (EMR). Click below to upload.</p>
|
<p class="mg-b-20">Fasten also supports manually uploaded electronic medical records (EMR/EHR). Click below to upload.</p>
|
||||||
|
|
||||||
<div class="row row-sm">
|
<div class="row row-sm">
|
||||||
<div class="col-lg">
|
<div class="col-lg">
|
||||||
<ngx-dropzone [multiple]="false" (change)="uploadSourceBundle($event)">
|
<ngx-dropzone [multiple]="false" (change)="uploadSourceBundle($event)" accept=".json">
|
||||||
<ngx-dropzone-label>Select your EMR bundle</ngx-dropzone-label>
|
<ngx-dropzone-label>Select your EMR/EHR bundle. Must be in JSON format</ngx-dropzone-label>
|
||||||
<ngx-dropzone-preview *ngFor="let f of uploadedFile" [removable]="false">
|
<ngx-dropzone-preview *ngFor="let f of uploadedFile" [removable]="false">
|
||||||
<ngx-dropzone-label>{{ f.name }} ({{ f.type }})</ngx-dropzone-label>
|
<ngx-dropzone-label>{{ f.name }} ({{ f.type }})</ngx-dropzone-label>
|
||||||
</ngx-dropzone-preview>
|
</ngx-dropzone-preview>
|
||||||
|
|
Loading…
Reference in New Issue