Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driverab #113

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

driverab #113

wants to merge 3 commits into from

Conversation

dominrivera
Copy link
Contributor

No description provided.

console.log(this.wrongLines);
//this.displayedContent = validation;
//console.log(this.displayedContent);
if(validation == true){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block can be removed

async validateFile(){
if(this.displayedContent!=null){
var newContent = this.displayedContent;
var validation = await this.fileDownloaderService.getValidation(newContent);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • validation (to be renamed validated_contents) need to be a unified type in both success an error cases
  • As we want to use the contents to display underlined the lines with incorrect changes, you can defined it as an Array[(String, Boolean)], where the string is the line to be displayed and the boolean has the information of whether or not the line is inocrrect to be used in the ngFor and ngIf clauses for the HTML template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants