Merge branch 'front_end_async_fix' into 'develop'

Front end async fix

See merge request !33
parents 55f8da37 85678d8a
langcode: el
status: true
dependencies: { }
id: applicant
label: applicant
weight: 3
is_admin: null
permissions:
- 'add epal student class entities'
- 'add epal student entities'
- 'add epal student course field entities'
- 'add epal student epal chosen entities'
- 'add epal student sector field entities'
- 'add epal users entities'
- 'delete epal student class entities'
- 'delete epal student entities'
- 'delete epal student course field entities'
- 'delete epal student epal chosen entities'
- 'delete epal student sector field entities'
- 'delete epal users entities'
- 'edit epal student class entities'
- 'edit epal student entities'
- 'edit epal student course field entities'
- 'edit epal student epal chosen entities'
- 'edit epal student sector field entities'
- 'edit epal users entities'
- 'view published epal student class entities'
- 'view published epal student entities'
- 'view published epal student course field entities'
- 'view published epal student epal chosen entities'
- 'view published epal student sector field entities'
- 'view published epal users entities'
- 'view unpublished epal student class entities'
- 'view unpublished epal student entities'
- 'view unpublished epal student course field entities'
- 'view unpublished epal student epal chosen entities'
- 'view unpublished epal student sector field entities'
- 'view unpublished epal users entities'
- 'view published eepal admin area entities'
- 'view published eepal prefecture entities'
- 'view published eepal region entities'
- 'view published eepal school entities'
- 'view published eepal sectors entities'
- 'view published eepal sectors in epal entities'
- 'view published eepal specialties in epal entities'
- 'view published eepal specialty entities'
- 'view unpublished eepal admin area entities'
- 'view unpublished eepal prefecture entities'
- 'view unpublished eepal region entities'
- 'view unpublished eepal school entities'
- 'view unpublished eepal sectors entities'
- 'view unpublished eepal sectors in epal entities'
- 'view unpublished eepal specialties in epal entities'
- 'view unpublished eepal specialty entities'
- 'access content'
<div class = "loading" *ngIf="showLoader$ | async"></div> <div class = "loading" *ngIf="(criteria$ | async).size === 0"></div>
<div class="row equal">
<div class="col-md-12">
<form novalidate [formGroup]="studentDataGroup" #form> <form novalidate [formGroup]="studentDataGroup" #form>
<form [formGroup]="applicantDataGroup"> <form [formGroup]="applicantDataGroup">
<table> <table>
...@@ -18,8 +16,6 @@ ...@@ -18,8 +16,6 @@
</table> </table>
</form> </form>
<div *ngFor="let studentDataField$ of studentDataFields$ | async; "> </div>
<div class="form-group"> <div class="form-group">
<label for="name">Όνομα μαθητή</label><input class="form-control" type="text" formControlName="name"> <label for="name">Όνομα μαθητή</label><input class="form-control" type="text" formControlName="name">
</div> </div>
...@@ -173,7 +169,7 @@ ...@@ -173,7 +169,7 @@
</form> </form>
<div class="row" style="margin-top: 20px;" *ngIf="!(showLoader$ | async)"> <div class="row" style="margin-top: 20px;" *ngIf="(criteria$ | async).size > 0">
<div class="col-md-6"> <div class="col-md-6">
<button type="button" class="btn-primary btn-lg pull-left" (click)="navigateBack()"> <button type="button" class="btn-primary btn-lg pull-left" (click)="navigateBack()">
<i class="fa fa-backward"></i> <i class="fa fa-backward"></i>
...@@ -188,4 +184,3 @@ ...@@ -188,4 +184,3 @@
</div> </div>
</form> </form>
</div>
import { Component, OnInit } from '@angular/core'; import { Component, OnInit, OnDestroy } from '@angular/core';
import { Observable } from 'rxjs/Rx'; import { BehaviorSubject, Subscription } from 'rxjs/Rx';
import { Injectable } from "@angular/core"; import { Injectable } from "@angular/core";
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { NgRedux, select } from 'ng2-redux'; import { NgRedux, select } from 'ng2-redux';
...@@ -9,6 +9,8 @@ import { CriteriaActions } from '../../actions/criteria.actions'; ...@@ -9,6 +9,8 @@ import { CriteriaActions } from '../../actions/criteria.actions';
import { ICriter } from '../../store/criteria/criteria.types'; import { ICriter } from '../../store/criteria/criteria.types';
import { IAppState } from '../../store/store'; import { IAppState } from '../../store/store';
import { VALID_NAMES_PATTERN, VALID_ADDRESS_PATTERN, VALID_ADDRESSTK_PATTERN, VALID_DIGITS_PATTERN } from '../../constants'; import { VALID_NAMES_PATTERN, VALID_ADDRESS_PATTERN, VALID_ADDRESSTK_PATTERN, VALID_DIGITS_PATTERN } from '../../constants';
import { STUDENT_DATA_FIELDS_INITIAL_STATE } from '../../store/studentdatafields/studentdatafields.initial-state';
import { CRITERIA_INITIAL_STATE } from '../../store/criteria/criteria.initial-state';
import { import {
FormBuilder, FormBuilder,
...@@ -25,9 +27,11 @@ import { ...@@ -25,9 +27,11 @@ import {
@Injectable() export default class StudentApplicationMain implements OnInit { @Injectable() export default class StudentApplicationMain implements OnInit {
private studentDataFields$: Observable<IStudentDataFields>; private studentDataFields$: BehaviorSubject<IStudentDataFields>;
private criteria$: Observable<ICriter>; private criteria$: BehaviorSubject<ICriter>;
private showLoader$: Observable<boolean>;
private studentDataFieldsSub: Subscription;
private criteriaSub: Subscription;
public studentDataGroup: FormGroup; public studentDataGroup: FormGroup;
public applicantDataGroup: FormGroup; public applicantDataGroup: FormGroup;
...@@ -41,6 +45,9 @@ import { ...@@ -41,6 +45,9 @@ import {
private _sdfb: CriteriaActions, private _sdfb: CriteriaActions,
private _ngRedux: NgRedux<IAppState>, private _ngRedux: NgRedux<IAppState>,
private router: Router) { private router: Router) {
this.studentDataFields$ = new BehaviorSubject(STUDENT_DATA_FIELDS_INITIAL_STATE);
this.criteria$ = new BehaviorSubject(CRITERIA_INITIAL_STATE);
this.studentDataGroup = this.fb.group({ this.studentDataGroup = this.fb.group({
epaluser_id: [,[]], epaluser_id: [,[]],
name: ['ΝΙΚΟΣ', [Validators.pattern(VALID_NAMES_PATTERN),Validators.required]], name: ['ΝΙΚΟΣ', [Validators.pattern(VALID_NAMES_PATTERN),Validators.required]],
...@@ -70,7 +77,7 @@ import { ...@@ -70,7 +77,7 @@ import {
ngOnInit() { ngOnInit() {
this.studentDataFields$ = this._ngRedux.select(state => { this.studentDataFieldsSub = this._ngRedux.select(state => {
if (state.studentDataFields.size > 0) { if (state.studentDataFields.size > 0) {
state.studentDataFields.reduce(({}, studentDataField) => { state.studentDataFields.reduce(({}, studentDataField) => {
this.studentDataGroup.setValue(studentDataField); this.studentDataGroup.setValue(studentDataField);
...@@ -78,10 +85,10 @@ import { ...@@ -78,10 +85,10 @@ import {
}, {}); }, {});
} }
return state.studentDataFields; return state.studentDataFields;
}); }).subscribe(this.studentDataFields$);
this._sdfb.getCriteria(true); this._sdfb.getCriteria(true);
this.criteria$ = this._ngRedux.select(state => { this.criteriaSub = this._ngRedux.select(state => {
if (state.criter.size > 0) { if (state.criter.size > 0) {
state.criter.reduce(({}, criteria) => { state.criter.reduce(({}, criteria) => {
//this.studentCriteriaGroup.setValue(criteria); //this.studentCriteriaGroup.setValue(criteria);
...@@ -93,9 +100,13 @@ import { ...@@ -93,9 +100,13 @@ import {
}, {}); }, {});
} }
return state.criter; return state.criter;
}); }).subscribe(this.criteria$);
this.showLoader$ = this.criteria$.map(criter => criter.size === 0);
}
ngOnDestroy() {
if (this.studentDataFieldsSub) this.studentDataFieldsSub.unsubscribe();
if (this.criteriaSub) this.criteriaSub.unsubscribe();
} }
navigateBack() { navigateBack() {
...@@ -139,9 +150,5 @@ import { ...@@ -139,9 +150,5 @@ import {
else else
// Null means valid, believe it or not // Null means valid, believe it or not
return null; return null;
}
}
} }
import { Component, OnInit } from '@angular/core'; import { Component, OnInit, OnDestroy } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { Http, Response, RequestOptions, Headers } from '@angular/http'; import { Http, Response, RequestOptions, Headers } from '@angular/http';
import { Observable } from 'rxjs/Rx'; import { BehaviorSubject, Subscription } from 'rxjs/Rx';
import { Injectable } from "@angular/core"; import { Injectable } from "@angular/core";
import { NgRedux, select } from 'ng2-redux'; import { NgRedux, select } from 'ng2-redux';
import { IAppState } from '../../store/store'; import { IAppState } from '../../store/store';
...@@ -12,37 +12,22 @@ import { ISectors } from '../../store/sectorcourses/sectorcourses.types'; ...@@ -12,37 +12,22 @@ import { ISectors } from '../../store/sectorcourses/sectorcourses.types';
import { ISectorFields } from '../../store/sectorfields/sectorfields.types'; import { ISectorFields } from '../../store/sectorfields/sectorfields.types';
import { IEpalClasses } from '../../store/epalclasses/epalclasses.types'; import { IEpalClasses } from '../../store/epalclasses/epalclasses.types';
import { ILoginInfo } from '../../store/logininfo/logininfo.types'; import { ILoginInfo } from '../../store/logininfo/logininfo.types';
import { STUDENT_DATA_FIELDS_INITIAL_STATE } from '../../store/studentdatafields/studentdatafields.initial-state';
import { CRITERIA_INITIAL_STATE } from '../../store/criteria/criteria.initial-state';
import { REGION_SCHOOLS_INITIAL_STATE } from '../../store/regionschools/regionschools.initial-state';
import { EPALCLASSES_INITIAL_STATE } from '../../store/epalclasses/epalclasses.initial-state';
import { SECTOR_COURSES_INITIAL_STATE } from '../../store/sectorcourses/sectorcourses.initial-state';
import { SECTOR_FIELDS_INITIAL_STATE } from '../../store/sectorfields/sectorfields.initial-state';
import { LOGININFO_INITIAL_STATE } from '../../store/logininfo/logininfo.initial-state';
import { Student, StudentEpalChosen, StudentCourseChosen, StudentSectorChosen, StudentCriteriaChosen } from '../students/student'; import { Student, StudentEpalChosen, StudentCourseChosen, StudentSectorChosen, StudentCriteriaChosen } from '../students/student';
import {AppSettings} from '../../app.settings'; import {AppSettings} from '../../app.settings';
@Component({ @Component({
selector: 'application-submit', selector: 'application-submit',
template: ` template: `
<application-preview-select></application-preview-select> <div class = "loading" *ngIf="(studentDataFields$ | async).size === 0 || (criteria$ | async).size === 0 || (regions$ | async).size === 0 || (epalclasses$ | async).size === 0 || (loginInfo$ | async).size === 0"></div>
<application-preview-select></application-preview-select>
<div class = "loading" *ngIf="showLoaderLogin$ | async"></div> <button type="button button-lg pull-right" *ngIf="(studentDataFields$ | async).size > 0 && (criteria$ | async).size > 0 && (regions$ | async).size > 0 && (epalclasses$ | async).size > 0 && (loginInfo$ | async).size > 0" class="btn-primary btn-lg pull-center" (click)="submitNow()">Υποβολή</button>
<div class = "loading" *ngIf="showLoaderClasses$ | async"></div>
<div class = "loading" *ngIf="showLoaderStudent$ | async"></div>
<div class = "loading" *ngIf="showLoaderSchools$ | async"></div>
<div class = "loading" *ngIf="showLoaderCriteria$ | async"></div>
<div class = "loading" *ngIf="showLoaderCourses$ | async"></div>
<div class = "loading" *ngIf="showLoaderSectors$ | async"></div>
<!--
<div *ngFor="let loginInfoToken$ of loginInfo$ | async;"> </div>
<div *ngFor="let epalclass$ of epalclasses$ | async;"> </div>
<div *ngFor="let studentDataField$ of studentDataFields$ | async; "> </div>
<div *ngFor="let region$ of regions$ | async;">
<div *ngFor="let epal$ of region$.epals "> </div> </div>
<div *ngFor="let sector$ of sectors$ | async;">
<div *ngFor="let course$ of sector$.courses;"> </div> </div>
<div *ngFor="let sectorField$ of sectorFields$ | async;"></div>
<div *ngFor="let criter$ of criteria$ | async;"> </div>
-->
<button type="button" class="btn-primary btn-lg pull-center" (click)="submitNow()">Υποβολή</button>
` `
}) })
...@@ -56,31 +41,38 @@ import {AppSettings} from '../../app.settings'; ...@@ -56,31 +41,38 @@ import {AppSettings} from '../../app.settings';
private courseSelected; private courseSelected;
private sectorSelected; private sectorSelected;
private classSelected; private classSelected;
private studentDataFields$: BehaviorSubject<IStudentDataFields>;
private showLoaderLogin$: Observable<boolean>; private regions$: BehaviorSubject<IRegions>;
private showLoaderClasses$: Observable<boolean>; private criteria$: BehaviorSubject<ICriter>;
private showLoaderStudent$: Observable<boolean>; private sectors$: BehaviorSubject<ISectors>;
private showLoaderSchools$: Observable<boolean>; private sectorFields$: BehaviorSubject<ISectorFields>;
private showLoaderCriteria$: Observable<boolean>; private epalclasses$: BehaviorSubject<IEpalClasses>;
private showLoaderCourses$: Observable<boolean>; private loginInfo$: BehaviorSubject<ILoginInfo>;
private showLoaderSectors$: Observable<boolean>; private studentDataFieldsSub: Subscription;
private regionsSub: Subscription;
private studentDataFields$: Observable<IStudentDataFields>; private criteriaSub: Subscription;
private regions$: Observable<IRegions>; private sectorsSub: Subscription;
private criteria$: Observable<ICriter>; private sectorFieldsSub: Subscription;
private sectors$: Observable<ISectors>; private epalclassesSub: Subscription;
private sectorFields$: Observable<ISectorFields>; private loginInfoSub: Subscription;
private epalclasses$: Observable<IEpalClasses>;
private loginInfo$: Observable<ILoginInfo>;
constructor(private _ngRedux: NgRedux<IAppState>, constructor(private _ngRedux: NgRedux<IAppState>,
private router: Router, private router: Router,
private http: Http private http: Http
) { ) {
this.regions$ = new BehaviorSubject(REGION_SCHOOLS_INITIAL_STATE);
this.epalclasses$ = new BehaviorSubject(EPALCLASSES_INITIAL_STATE);
this.sectors$ = new BehaviorSubject(SECTOR_COURSES_INITIAL_STATE);
this.sectorFields$ = new BehaviorSubject(SECTOR_FIELDS_INITIAL_STATE);
this.studentDataFields$ = new BehaviorSubject(STUDENT_DATA_FIELDS_INITIAL_STATE);
this.criteria$ = new BehaviorSubject(CRITERIA_INITIAL_STATE);
this.loginInfo$ = new BehaviorSubject(LOGININFO_INITIAL_STATE);
}; };
ngOnInit() { ngOnInit() {
this.loginInfo$ = this._ngRedux.select(state => { this.loginInfoSub = this._ngRedux.select(state => {
if (state.loginInfo.size > 0) { if (state.loginInfo.size > 0) {
state.loginInfo.reduce(({}, loginInfoToken) => { state.loginInfo.reduce(({}, loginInfoToken) => {
this.authToken = loginInfoToken.auth_token; this.authToken = loginInfoToken.auth_token;
...@@ -88,10 +80,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -88,10 +80,9 @@ import {AppSettings} from '../../app.settings';
}, {}); }, {});
} }
return state.loginInfo; return state.loginInfo;
}); }).subscribe(this.loginInfo$);
this.showLoaderLogin$ = this.loginInfo$.map(loginInfo => loginInfo.size === 0);
this.epalclasses$ = this._ngRedux.select(state => { this.epalclassesSub = this._ngRedux.select(state => {
if (state.epalclasses.size > 0) { if (state.epalclasses.size > 0) {
state.epalclasses.reduce(({}, epalclass) => { state.epalclasses.reduce(({}, epalclass) => {
this.classSelected = epalclass.name; this.classSelected = epalclass.name;
...@@ -99,10 +90,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -99,10 +90,9 @@ import {AppSettings} from '../../app.settings';
}, {}); }, {});
} }
return state.epalclasses; return state.epalclasses;
}); }).subscribe(this.epalclasses$);
this.showLoaderClasses$ = this.epalclasses$.map(epalclasses => epalclasses.size === 0);
this.studentDataFields$ = this._ngRedux.select(state => { this.studentDataFieldsSub = this._ngRedux.select(state => {
if (state.studentDataFields.size > 0) { if (state.studentDataFields.size > 0) {
state.studentDataFields.reduce(({}, studentDataField) => { state.studentDataFields.reduce(({}, studentDataField) => {
this.student = studentDataField; this.student = studentDataField;
...@@ -110,10 +100,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -110,10 +100,9 @@ import {AppSettings} from '../../app.settings';
}, {}); }, {});
} }
return state.studentDataFields; return state.studentDataFields;
}); }).subscribe(this.studentDataFields$);
this.showLoaderStudent$ = this.studentDataFields$.map(studentDataFields => studentDataFields.size === 0);
this.regions$ = this._ngRedux.select(state => { this.regionsSub = this._ngRedux.select(state => {
state.regions.reduce((prevRegion, region) =>{ state.regions.reduce((prevRegion, region) =>{
region.epals.reduce((prevEpal, epal) =>{ region.epals.reduce((prevEpal, epal) =>{
if (epal.selected === true) { if (epal.selected === true) {
...@@ -125,10 +114,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -125,10 +114,9 @@ import {AppSettings} from '../../app.settings';
return region; return region;
}, {}); }, {});
return state.regions; return state.regions;
}); }).subscribe(this.regions$);
this.showLoaderSchools$ = this.regions$.map(regions => regions.size === 0);
this.criteria$ = this._ngRedux.select(state => { this.criteriaSub = this._ngRedux.select(state => {
if (state.criter.size > 0) { if (state.criter.size > 0) {
state.criter.reduce(({}, criteria) => { state.criter.reduce(({}, criteria) => {
//code to be replaced in next version //code to be replaced in next version
...@@ -139,44 +127,10 @@ import {AppSettings} from '../../app.settings'; ...@@ -139,44 +127,10 @@ import {AppSettings} from '../../app.settings';
}, {}); }, {});
} }
return state.criter; return state.criter;
}); }).subscribe(this.criteria$);
this.showLoaderCriteria$ = this.criteria$.map(criter => criter.size === 0);
/*
this.criteria$ = this._ngRedux.select(state => {
if (state.criter.size > 0) {
state.criter.reduce(({}, criteria) => {
//code to be replaced in next version
if (criteria.orphanmono === true)
this.studentCriteria.push(6);
else if (criteria.orphantwice === true)
this.studentCriteria.push(1);
if (criteria.threechildren === true)
this.studentCriteria.push(11);
else if (criteria.manychildren === true)
this.studentCriteria.push(2);
if (criteria.twins === true)
this.studentCriteria.push(3);
if (criteria.disability === true)
this.studentCriteria.push(5);
if (criteria.studies === true)
this.studentCriteria.push(4);
if (criteria.income === '<= 3000 Ευρώ')
this.studentCriteria.push(7);
else if (criteria.income === '<= 6000 Ευρώ')
this.studentCriteria.push(8);
else if (criteria.income === '<= 9000 Ευρώ')
this.studentCriteria.push(9);
return criteria; this.sectorsSub = this._ngRedux.select(state => {
}, {});
}
return state.criter;
});
this.showLoaderCriteria$ = this.criteria$.map(criter => criter.size === 0);
*/
this.sectors$ = this._ngRedux.select(state => {
state.sectors.reduce((prevSector, sector) =>{ state.sectors.reduce((prevSector, sector) =>{
sector.courses.reduce((prevCourse, course) =>{ sector.courses.reduce((prevCourse, course) =>{
if (course.selected === true) { if (course.selected === true) {
...@@ -187,10 +141,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -187,10 +141,9 @@ import {AppSettings} from '../../app.settings';
return sector; return sector;
}, {}); }, {});
return state.sectors; return state.sectors;
}); }).subscribe(this.sectors$);
this.showLoaderCourses$ = this.sectors$.map(sectors => sectors.size === 0 && this.classSelected === "Γ' Λυκείου");
this.sectorFields$ = this._ngRedux.select(state => { this.sectorFieldsSub = this._ngRedux.select(state => {
state.sectorFields.reduce(({}, sectorField) =>{ state.sectorFields.reduce(({}, sectorField) =>{
if (sectorField.selected === true) { if (sectorField.selected === true) {
this.sectorSelected = sectorField.id this.sectorSelected = sectorField.id
...@@ -198,13 +151,20 @@ import {AppSettings} from '../../app.settings'; ...@@ -198,13 +151,20 @@ import {AppSettings} from '../../app.settings';
return sectorField; return sectorField;
}, {}); }, {});
return state.sectorFields; return state.sectorFields;
}); }).subscribe(this.sectorFields$);
this.showLoaderSectors$ = this.sectorFields$.map(sectorFields => sectorFields.size === 0 && this.classSelected === "Β' Λυκείου");
}; };
ngOnDestroy() {
if (this.studentDataFieldsSub) this.studentDataFieldsSub.unsubscribe();
if (this.criteriaSub) this.criteriaSub.unsubscribe();
if (this.regionsSub) this.regionsSub.unsubscribe();
if (this.sectorsSub) this.sectorsSub.unsubscribe();
if (this.sectorFieldsSub) this.sectorFieldsSub.unsubscribe();
if (this.epalclassesSub) this.epalclassesSub.unsubscribe();
if (this.loginInfoSub) this.loginInfoSub.unsubscribe();
}
submitNow() { submitNow() {
//αποστολή στοιχείων μαθητή στο entity: epal_student //αποστολή στοιχείων μαθητή στο entity: epal_student
let aitisiObj: Array<Student | StudentEpalChosen[] | StudentCriteriaChosen[] | StudentCourseChosen | StudentSectorChosen > = []; let aitisiObj: Array<Student | StudentEpalChosen[] | StudentCriteriaChosen[] | StudentCourseChosen | StudentSectorChosen > = [];
......
...@@ -2,4 +2,4 @@ import { List } from 'immutable'; ...@@ -2,4 +2,4 @@ import { List } from 'immutable';
import { ICriteria } from './criteria.types'; import { ICriteria } from './criteria.types';
export const INITIAL_STATE = List<ICriteria>(); export const CRITERIA_INITIAL_STATE = List<ICriteria>();
import { ICriteria, ICriter } from './criteria.types'; import { ICriteria, ICriter } from './criteria.types';
import { INITIAL_STATE } from './criteria.initial-state'; import { CRITERIA_INITIAL_STATE } from './criteria.initial-state';
import { Seq } from 'immutable'; import { Seq } from 'immutable';
import { import {
...@@ -7,7 +7,7 @@ import { ...@@ -7,7 +7,7 @@ import {
CRITERIA_SAVE CRITERIA_SAVE
} from '../../constants'; } from '../../constants';
export function criteriaReducer(state: ICriter = INITIAL_STATE, action): ICriter { export function criteriaReducer(state: ICriter = CRITERIA_INITIAL_STATE, action): ICriter {
switch (action.type) { switch (action.type) {
case CRITERIA_RECEIVED: case CRITERIA_RECEIVED:
let newCriter = Array<ICriteria>(); let newCriter = Array<ICriteria>();
......
import { List } from 'immutable'; import { List } from 'immutable';
export interface ICriteria { export interface ICriteria {
/*
orphanmono: boolean;
orphantwice: boolean;
threechildren: boolean;
manychildren: boolean;
twins: boolean;
disability: boolean;
studies: boolean;
income: string;
*/
id: string; id: string;
name: string; name: string;
mutual_disabled_id: string, mutual_disabled_id: string,
......
...@@ -2,4 +2,4 @@ import { List } from 'immutable'; ...@@ -2,4 +2,4 @@ import { List } from 'immutable';
import { ILoginInfoToken } from './logininfo.types'; import { ILoginInfoToken } from './logininfo.types';
// export const INITIAL_STATE = List<ICourseField>([new CourseFieldRecord({})]); // export const INITIAL_STATE = List<ICourseField>([new CourseFieldRecord({})]);
export const INITIAL_STATE = List<ILoginInfoToken>(); export const LOGININFO_INITIAL_STATE = List<ILoginInfoToken>();