forked from geolba/tethys.frontend
- added src/compoenents/Pagination.vue
- npm updates - added "type": "module" inside package.json - renamed .eslintrc.js, postcss.config.js and vue.config.js - adapted search-view-component
This commit is contained in:
parent
315eabf3bb
commit
c6469b00b4
13 changed files with 885 additions and 689 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import { Component, Vue, Prop } from "vue-facing-decorator";
|
||||
import { DbDataset } from "@/models/dataset";
|
||||
// import { Prop } from "vue-property-decorator";
|
||||
import DatasetService from "../../services/dataset.service";
|
||||
import { Subscription } from "rxjs";
|
||||
import dayjs from "dayjs";
|
||||
|
|
@ -29,7 +28,7 @@ export default class DatasetDetailComponent extends Vue {
|
|||
|
||||
private subscriptions: Array<Subscription> = [];
|
||||
public dataset = {} as DbDataset;
|
||||
private error = "";
|
||||
private error: string = "";
|
||||
public loaded = false;
|
||||
public openAccessLicences: Array<string> = ["CC-BY-4.0", "CC-BY-SA-4.0"];
|
||||
public portal = VUE_API + "/api/file/download/";
|
||||
|
|
@ -93,7 +92,10 @@ export default class DatasetDetailComponent extends Vue {
|
|||
this.dataset = res;
|
||||
this.loaded = true;
|
||||
},
|
||||
error: (error: string) => this.errorHandler(error),
|
||||
// error: (error: string) => this.errorHandler(error),
|
||||
error: (error: string) => {
|
||||
this.error = error;
|
||||
},
|
||||
});
|
||||
|
||||
this.subscriptions.push(newSub);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue