Implemented visibility interface
This commit is contained in:
parent
2556a424a1
commit
8e189a9e7c
2 changed files with 13 additions and 2 deletions
|
@ -4,6 +4,9 @@
|
|||
<b-form-input id="id" v-model="form.project_id" required trim disabled>
|
||||
</b-form-input>
|
||||
</b-form-group>
|
||||
<b-form-checkbox id="visible" v-model="form.visible" dark>
|
||||
Visible
|
||||
</b-form-checkbox>
|
||||
<b-form-group id="name-group" label-for="name" label="Name">
|
||||
<b-form-input id="name" v-model="form.name" required trim> </b-form-input>
|
||||
</b-form-group>
|
||||
|
@ -63,7 +66,8 @@ export default {
|
|||
project_id: undefined,
|
||||
start_date: undefined,
|
||||
name: undefined,
|
||||
color: undefined
|
||||
color: undefined,
|
||||
visible: undefined
|
||||
}
|
||||
};
|
||||
},
|
||||
|
@ -105,6 +109,7 @@ export default {
|
|||
this.form.name = this.project.name;
|
||||
this.form.start_date = this.project.start_date;
|
||||
this.form.color = this.project.color;
|
||||
this.form.visible = this.project.visible;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
<b-form-input id="id" v-model="form.record_tag_id" required trim disabled>
|
||||
</b-form-input>
|
||||
</b-form-group>
|
||||
<b-form-checkbox id="visible" v-model="form.visible" dark>
|
||||
Visible
|
||||
</b-form-checkbox>
|
||||
<b-form-group id="name-group" label-for="name" label="Name">
|
||||
<b-form-input id="name" v-model="form.name" required trim> </b-form-input>
|
||||
</b-form-group>
|
||||
|
@ -48,7 +51,8 @@ export default {
|
|||
working: false,
|
||||
form: {
|
||||
record_tag_id: undefined,
|
||||
name: undefined
|
||||
name: undefined,
|
||||
visible: undefined
|
||||
}
|
||||
};
|
||||
},
|
||||
|
@ -84,6 +88,8 @@ export default {
|
|||
created: function() {
|
||||
this.form.record_tag_id = this.tag.record_tag_id;
|
||||
this.form.name = this.tag.name;
|
||||
console.log(this.tag);
|
||||
this.form.visible = this.tag.visible;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue