Skip to content
Snippets Groups Projects
Commit 72ddd619 authored by Moises Sacal's avatar Moises Sacal
Browse files

removed init console errors

parent d0233bb0
1 merge request!2Refactor
...@@ -3,16 +3,16 @@ var vm = new Vue({ ...@@ -3,16 +3,16 @@ var vm = new Vue({
data: { data: {
files: { files: {
up: null, up: null,
dirs: null, dirs: [],
files: null, files: [],
existing_describo: false existing_describo: false
}, },
context: { context: {
entities: null, entities: [],
root: null root: null
}, },
schema: { schema: {
types: null, types: [],
properties: null properties: null
}, },
prop: {"name": "nom", "value": "val"}, prop: {"name": "nom", "value": "val"},
......
...@@ -35,6 +35,7 @@ var components = function () { ...@@ -35,6 +35,7 @@ var components = function () {
v-bind:schema="schema" v-bind:schema="schema"
v-bind:val="values[i_index + page * 20]" v-bind:val="values[i_index + page * 20]"
v-bind:i_index="i_index" v-bind:i_index="i_index"
:key="i_index"
> >
</show-value> </show-value>
</details> </details>
...@@ -60,7 +61,9 @@ var components = function () { ...@@ -60,7 +61,9 @@ var components = function () {
v-bind:values="values" v-bind:values="values"
v-bind:schema="schema" v-bind:schema="schema"
v-bind:val="val" v-bind:val="val"
v-bind:i_index="i_index"> v-bind:i_index="i_index"
:key="i_index"
>
</show-value> </show-value>
</template> </template>
</div> </div>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="navbar-nav"> <div class="navbar-nav">
<div class="navbar-item mr-auto"> <div class="navbar-item mr-auto">
<a v-if="dataset_path" class="nav-link" <a v-if="dataset_path && display_path" class="nav-link"
v-bind:href="'/?path=' + display_path + '&dataset_path=' + display_path"> v-bind:href="'/?path=' + display_path + '&dataset_path=' + display_path">
<template v-if="files && files.existing_describo"> <template v-if="files && files.existing_describo">
Edit existing data package Edit existing data package
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<div v-if="dataset_path" class="navbar-item mr-auto"> <div v-if="dataset_path" class="navbar-item mr-auto">
<a class="nav-link" <a class="nav-link"
v-if="dataset_path && files && files.existing_catalog" v-if="dataset_path && display_path && files && files.existing_catalog"
v-bind:href="'/import_crate?path=' + display_path + '&dataset_path=' + display_path"> v-bind:href="'/import_crate?path=' + display_path + '&dataset_path=' + display_path">
<span <span
v-if="files.existing_describo" v-if="files.existing_describo"
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="navbar-item mr-auto "> <div class="navbar-item mr-auto">
<form class="form-inline" v-on:submit.prevent="addContext()"> <form class="form-inline" v-on:submit.prevent="addContext()">
<select class="custom-select" v-model="type"> <select class="custom-select" v-model="type">
<option <option
...@@ -85,8 +85,6 @@ ...@@ -85,8 +85,6 @@
v-for="type_name in Object.getOwnPropertyNames(schema.types).filter(type => {return schema.types[type].create})" v-for="type_name in Object.getOwnPropertyNames(schema.types).filter(type => {return schema.types[type].create})"
v-bind:value="type_name"> {{ type_name }} v-bind:value="type_name"> {{ type_name }}
</option> </option>
<option></option>
</select>
</select> </select>
<button class="btn btn-secondary" type="submit">Add contextual item</button> <button class="btn btn-secondary" type="submit">Add contextual item</button>
</form> </form>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment