Hardocs / desktop-app

Hardocs desktop app presenting current docs editing functionalities.
GNU General Public License v2.0
3 stars 2 forks source link

Being passed from the state to the vuetify form component #78

Closed jurra closed 3 years ago

jurra commented 3 years ago

Report bug properly

DNature commented 3 years ago

After integrating vjfs for schema, the supposed behavior of creating a hardocs project in the UI changed.

Previous (expected) behavior.

Current behavior:

DNature commented 3 years ago

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';
}
jurra commented 3 years ago

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 .