mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
Reverted inappropriate changes
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
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({
|
||||
selector: 'ds-home-page',
|
||||
@@ -10,14 +6,4 @@ import { Store } from '@ngrx/store';
|
||||
templateUrl: './home-page.component.html'
|
||||
})
|
||||
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);
|
||||
return ({ payload: res.body, headers: res.headers, statusCode: res.statusText })
|
||||
})
|
||||
.share()
|
||||
.catch((err) => {
|
||||
console.log('Error: ', err);
|
||||
return Observable.throw(err);
|
||||
|
Reference in New Issue
Block a user