Removed unused page
This commit is contained in:
parent
0dedd964de
commit
5b24bbf2a4
1 changed files with 0 additions and 44 deletions
|
@ -1,44 +0,0 @@
|
|||
<template>
|
||||
<LayoutNavbarPrivate title="Record details" :center="loading || !!error">
|
||||
<b-spinner v-if="loading" center />
|
||||
<p class="danger" v-if="error">{{ error }}</p>
|
||||
<FormRecordDetails :record="record" v-if="record !== undefined" />
|
||||
</LayoutNavbarPrivate>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import LayoutNavbarPrivate from "@/components/layout/LayoutNavbarPrivate";
|
||||
import FormRecordDetails from "@/components/forms/FormRecordDetails";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
name: "RecordDetails",
|
||||
components: {
|
||||
LayoutNavbarPrivate,
|
||||
FormRecordDetails
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
record: {},
|
||||
error: ""
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
loading: function() {
|
||||
return this.record == {} && !this.error;
|
||||
}
|
||||
},
|
||||
created: function() {
|
||||
// TODO: Load dependencies. E.g. projects and necessary record (not all)
|
||||
|
||||
var recordId = this.$route.params.id;
|
||||
this.record = store.getters.getRecordById(recordId);
|
||||
|
||||
if (this.record === undefined) {
|
||||
this.error = "Could not load record with id '" + recordId + "'.";
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="sass"></style>
|
Loading…
Reference in a new issue