Closed jurra closed 3 years ago
After integrating vjfs
for schema, the supposed behavior of creating a hardocs project in the UI changed.
create project
button, a file system dialog comes up for a user to select a folder to store a new project and hits ok. docs
and index.html
as the default state.After debugging,
I noticed that we do not have to load the schema with a ref because vjfs
does that automatically.
created(){
- this.schema.then((schema) => {
- return this.$refs.formSchema.load(schema);
- });
this.model.path = this.cwd;
this.model.docsDir = 'docs';
this.model.entryFile = 'index.html';
}
We need to pass the stae of that specific component into the main state
On Thu, 4 Mar 2021, 13:19 Divine Hycenth, notifications@github.com wrote:
After debugging,
I noticed that we do not have to load the schema with a ref because vjfs does that automatically.
created(){
- this.schema.then((schema) => {
- return this.$refs.formSchema.load(schema);
- }); this.model.path = this.cwd; this.model.docsDir = 'docs'; this.model.entryFile = 'index.html'; }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Hardocs/desktop-app/issues/78#issuecomment-790577699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENYNUMM6PRPZG3AW7I6B7TTB53FXANCNFSM4YSYAW5A .
Report bug properly