Project

General

Profile

« Previous | Next » 

Revision 62551

Added by John Balasis over 1 year ago

added desired compatibility level plus minor fixes

View differences:

datasource-new-interface-form.component.ts
113 113
        },
114 114
        () => {
115 115
          if (this.currentInterface?.apiParams?.find(entry => entry.param === 'set')) {
116
            // it will not work if set is not on valsetList
117
            if (this.valsetList.some(x => x === this.currentInterface.apiParams['set'])) {
118
              this.repoInterfaceForm.get('selectValidationSet').setValue(this.currentInterface.apiParams
119
                .find(entry => entry.param === 'set').value);
120
            }
121
            this.loadingMessage = '';
122
            this.repoInterfaceForm.updateValueAndValidity();
123
            this.checkIfValid();
116
            this.repoInterfaceForm.get('selectValidationSet').setValue(this.currentInterface.apiParams
117
              .find(entry => entry.param === 'set').value);
118
            this.repoService.getInterfaceDesiredCompatibilityLevel(this.currentInterface.datasource, this.currentInterface.id).subscribe(
119
              res => {
120
                console.log(res);
121
                this.repoInterfaceForm.get('desiredCompatibilityLevel').setValue(res['desiredCompatibilityLevel']);
122
              }
123
            );
124
          this.loadingMessage = '';
125
          this.repoInterfaceForm.updateValueAndValidity();
126
          this.checkIfValid();
124 127
          }
125 128
        }
126 129
      );

Also available in: Unified diff