Skip to content
Snippets Groups Projects

Resolve "Add ScrollToTop"

Merged Tifenn Guillas requested to merge 104-add-scrolltotop into develop
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -8,6 +8,7 @@ import * as fromDocumentation from '../store/documentation.reducer';
import * as documentationSelector from '../store/documentation.selector';
import { Dataset, Attribute } from 'src/app/metamodel/model';
import { environment } from '../../../environments/environment';
import { ScrollTopService } from "../../shared/service/sroll-top.service";
@Component({
selector: 'app-documentation',
@@ -23,7 +24,7 @@ export class DocumentationComponent implements OnInit {
public attributeListIsLoaded: Observable<boolean>;
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.datasetListIsLoaded = store.select(documentationSelector.getDatasetListIsLoaded);
this.datasetList = store.select(documentationSelector.getDatasetList);
@@ -34,6 +35,7 @@ export class DocumentationComponent implements OnInit {
ngOnInit() {
this.store.dispatch(new documentationActions.RetrieveDatasetList());
this.scrollTopService.setScrollTop();
}
getDatasetAttributes(dataset: Dataset, attributeList: Attribute[]): Attribute[] {
Loading