mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Reverted inappropriate changes
This commit is contained in:
@@ -1,8 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { isAuthenticated } from '../core/auth/selectors';
|
|
||||||
import { Observable } from 'rxjs/Observable';
|
|
||||||
import { AppState } from '../app.reducer';
|
|
||||||
import { Store } from '@ngrx/store';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-home-page',
|
selector: 'ds-home-page',
|
||||||
@@ -10,14 +6,4 @@ import { Store } from '@ngrx/store';
|
|||||||
templateUrl: './home-page.component.html'
|
templateUrl: './home-page.component.html'
|
||||||
})
|
})
|
||||||
export class HomePageComponent implements OnInit {
|
export class HomePageComponent implements OnInit {
|
||||||
public isAuthenticated: Observable<boolean>;
|
|
||||||
|
|
||||||
constructor(private store: Store<AppState>) {
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
// set loading
|
|
||||||
this.isAuthenticated = this.store.select(isAuthenticated);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -71,7 +71,6 @@ export class DSpaceRESTv2Service {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
return ({ payload: res.body, headers: res.headers, statusCode: res.statusText })
|
return ({ payload: res.body, headers: res.headers, statusCode: res.statusText })
|
||||||
})
|
})
|
||||||
.share()
|
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log('Error: ', err);
|
console.log('Error: ', err);
|
||||||
return Observable.throw(err);
|
return Observable.throw(err);
|
||||||
|
Reference in New Issue
Block a user