Project

General

Profile

« Previous | Next » 

Revision 51320

prepared register and validate for the help service

View differences:

compatibility-validation-history.component.ts
153 153
    );
154 154
  }
155 155

  
156
  getResultImage(ended: string, error: string) {
157
    if (!ended) {
156
  getResultImage(status: string) {
157
    console.log(`status is ${status}`);
158
    if (status == 'ongoing') {
158 159
      return `../../../assets/imgs/icon_colours-question.jpg`;
160
    } else if (status == 'successful') {
161
        return `../../../assets/imgs/icon_colours-check.jpg`;
159 162
    } else {
160
      if (error == 'no errors') {
161
        return `../../../assets/imgs/icon_colours-check.jpg`;
162
      } else {
163
        return `../../../assets/imgs/icon_colours-x.jpg`;
164
      }
163
      return `../../../assets/imgs/icon_colours-x.jpg`;
165 164
    }
166 165
  }
167 166

  

Also available in: Unified diff