Skip to content

driverab#113

Open
dominrivera wants to merge 3 commits intomasterfrom
driverab
Open

driverab#113
dominrivera wants to merge 3 commits intomasterfrom
driverab

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