Project

General

Profile

« Previous | Next » 

Revision 62388

refactor. fix getDatasourceClasses and corresponding dropdown. fix issn fields

View differences:

register-new-datasource.component.ts
137 137

  
138 138
  addInterfaceToList(intrf?: RepositoryInterface) {
139 139
    const curIndex = this.dataForInterfaceComp.length;
140
    const curRepoInfo = { id: this.repo.id, datasourceType: this.repo.datasourceType,
141
      datasourceClass: this.repo.eoscDatasourceType, registeredBy: this.repo.registeredBy };
140
    const curRepoInfo = { id: this.repo.id, datasourceType: this.repo.eoscDatasourceType,
141
      datasourceClass: this.repo.eoscDatasourceType, registeredBy: this.repo.registeredby };
142 142
    if (intrf) {
143 143
      this.dataForInterfaceComp.push([true, curIndex, curRepoInfo, intrf]);
144 144
    } else {
......
180 180
        this.dataForInterfaceComp.push([
181 181
          true, i,
182 182
          { id: this.repo.id,
183
            datasourceType: this.repo.datasourceType,
183
            datasourceType: this.repo.eoscDatasourceType,
184 184
            datasourceClass: this.repo.eoscDatasourceType,
185
            registeredBy: this.repo.registeredBy
185
            registeredBy: this.repo.registeredby
186 186
          },
187 187
          this.repoInterfaces[i]
188 188
        ]);
......
191 191
      this.dataForInterfaceComp.push([
192 192
        true, 0,
193 193
        { id: this.repo.id,
194
          datasourceType: this.repo.datasourceType,
194
          datasourceType: this.repo.eoscDatasourceType,
195 195
          datasourceClass: this.repo.eoscDatasourceType,
196
          registeredBy: this.repo.registeredBy
196
          registeredBy: this.repo.registeredby
197 197
        }
198 198
      ]);
199 199
    }
......
223 223
      this.loadingMessage = 'Saving changes';
224 224
      this.errorMessage = '';
225 225
      console.log('add this.repo', this.repo);
226
      this.repoService.addRepository(this.repo.datasourceType, this.repo).subscribe(
226
      this.repoService.addRepository(this.repo.eoscDatasourceType, this.repo).subscribe(
227 227
        response => {
228
          console.log(`addRepository responded: ${response.id}, ${response.registeredBy}`);
228
          console.log(`addRepository responded: ${response.id}, ${response.registeredby}`);
229 229
          this.repo = response;
230 230
        },
231 231
        error => {
......
246 246
        concatMap(intrf => {
247 247
          if (intrf.id) {
248 248
            // console.log('comments', intrf.comments);
249
            return this.repoService.updateInterface(this.repo.id, this.repo.registeredBy, intrf.comments, intrf);
249
            return this.repoService.updateInterface(this.repo.id, this.repo.registeredby, intrf.comments, intrf);
250 250
          } else {
251 251
            // console.log('comments', intrf.comments);
252
            return this.repoService.addInterface(this.repo.datasourceType, this.repo.id, this.repo.registeredBy, intrf.comments, intrf);
252
            return this.repoService.addInterface(this.repo.eoscDatasourceType, this.repo.id, this.repo.registeredby, intrf.comments, intrf);
253 253
          }
254 254
        })
255 255
      ).subscribe(

Also available in: Unified diff