Skip to content

Commit

Permalink
fix form_id
Browse files Browse the repository at this point in the history
  • Loading branch information
federico committed Nov 6, 2024
1 parent 336a625 commit 4ac5d18
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { firstValueFrom } from 'rxjs';
import { environment as ENV } from 'src/environments/environment';

@Injectable({
Expand Down
3 changes: 2 additions & 1 deletion src/app/public/view/view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ViewService } from './view.service';
import { TranslateService } from '@ngx-translate/core';
import { Title } from '@angular/platform-browser';
import { StringService } from 'src/app/common/string.service';
import { environment as ENV } from 'src/environments/environment';

@Component({
selector: 'app-view',
Expand Down Expand Up @@ -76,7 +77,7 @@ export class ViewComponent implements OnInit {
.toLowerCase()
.includes('obiettivi di accessibilit');
if (this.isDichiarazioneAccessibilita) {
const formSchemaResp: any = await firstValueFrom(this.viewService.findPublicFormById("669f6ce7ceb80982138a9f9a"))
const formSchemaResp: any = await firstValueFrom(this.viewService.findPublicFormById(ENV.FORM_ID))
let oggettoNome = "";
let oggettoUrl = "";
let specsLink = "";
Expand Down
1 change: 1 addition & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export const environment = {
AUTH_RESPONSE_TYPE: '',
AUTH_SHOW_DEBUG_INFORMATION: true,
AUTH_REQUIRE_HTTPS: false,
FORM_ID: ""
};
2 changes: 2 additions & 0 deletions src/environments/environment.stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ export const environment = {
AUTH_RESPONSE_TYPE: '',
AUTH_SHOW_DEBUG_INFORMATION: true,
AUTH_REQUIRE_HTTPS: false,
FORM_ID: ""

};
1 change: 1 addition & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export const environment = {
AUTH_RESPONSE_TYPE: '',
AUTH_SHOW_DEBUG_INFORMATION: true,
AUTH_REQUIRE_HTTPS: false,
FORM_ID: ""
};

0 comments on commit 4ac5d18

Please sign in to comment.