Skip to content
Snippets Groups Projects
Commit e517014c authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Merge branch '104-add-scrolltotop' into 'develop'

Resolve "Add ScrollToTop"

Closes #104

See merge request !114
parents c2446847 a8c11939
No related branches found
No related tags found
2 merge requests!147Develop,!114Resolve "Add ScrollToTop"
Pipeline #2773 failed
...@@ -8,6 +8,7 @@ import * as fromDocumentation from '../store/documentation.reducer'; ...@@ -8,6 +8,7 @@ import * as fromDocumentation from '../store/documentation.reducer';
import * as documentationSelector from '../store/documentation.selector'; import * as documentationSelector from '../store/documentation.selector';
import { Dataset, Attribute } from 'src/app/metamodel/model'; import { Dataset, Attribute } from 'src/app/metamodel/model';
import { environment } from '../../../environments/environment'; import { environment } from '../../../environments/environment';
import { ScrollTopService } from "../../shared/service/sroll-top.service";
@Component({ @Component({
selector: 'app-documentation', selector: 'app-documentation',
...@@ -23,7 +24,7 @@ export class DocumentationComponent implements OnInit { ...@@ -23,7 +24,7 @@ export class DocumentationComponent implements OnInit {
public attributeListIsLoaded: Observable<boolean>; public attributeListIsLoaded: Observable<boolean>;
public attributeList: Observable<Attribute[]>; public attributeList: Observable<Attribute[]>;
constructor(private store: Store<{ documentation: fromDocumentation.State }>) { constructor(private store: Store<{ documentation: fromDocumentation.State }>, private scrollTopService: ScrollTopService) {
this.datasetListIsLoading = store.select(documentationSelector.getDatasetListIsLoading); this.datasetListIsLoading = store.select(documentationSelector.getDatasetListIsLoading);
this.datasetListIsLoaded = store.select(documentationSelector.getDatasetListIsLoaded); this.datasetListIsLoaded = store.select(documentationSelector.getDatasetListIsLoaded);
this.datasetList = store.select(documentationSelector.getDatasetList); this.datasetList = store.select(documentationSelector.getDatasetList);
...@@ -34,6 +35,7 @@ export class DocumentationComponent implements OnInit { ...@@ -34,6 +35,7 @@ export class DocumentationComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.store.dispatch(new documentationActions.RetrieveDatasetList()); this.store.dispatch(new documentationActions.RetrieveDatasetList());
this.scrollTopService.setScrollTop();
} }
getDatasetAttributes(dataset: Dataset, attributeList: Attribute[]): Attribute[] { getDatasetAttributes(dataset: Dataset, attributeList: Attribute[]): Attribute[] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment