Revision 62103
Added by Antonis Lempesis about 2 years ago
datasource-new-interface-form.component.ts | ||
---|---|---|
26 | 26 |
invalidCustomBaseUrl = invalidCustomBaseUrl; |
27 | 27 |
|
28 | 28 |
@Input() data: any[] = []; // expects an array containing at least 3 of the 4 below fields in this order |
29 |
@Input() mode: string = null; |
|
29 | 30 |
inRegister: boolean; |
30 | 31 |
interfaceID: number; // holds the interface index in the interfaces array as displayed |
31 | 32 |
currentRepo: RepoFields; // a fraction of the Repository class |
... | ... | |
125 | 126 |
} |
126 | 127 |
|
127 | 128 |
getCompatibilityClasses() { |
128 |
this.repoService.getCompatibilityClasses(this.currentRepo.datasourceType).subscribe( |
|
129 |
// FIXME: Use eoscDatasourceType when we support the new model |
|
130 |
if (this.mode === null) { |
|
131 |
this.mode = this.currentRepo.datasourceType; |
|
132 |
} |
|
133 |
this.repoService.getCompatibilityClasses(this.mode).subscribe( |
|
129 | 134 |
classes => { |
130 | 135 |
this.compClasses = classes; |
131 | 136 |
this.classCodes = Object.keys(this.compClasses); |
Also available in: Unified diff
merged branch cris-registration (r62082:HEAD)