diff --git a/src/app/core/components/footer/footer.component.html b/src/app/core/components/footer/footer.component.html index 9410a3e2..a62e391f 100644 --- a/src/app/core/components/footer/footer.component.html +++ b/src/app/core/components/footer/footer.component.html @@ -45,7 +45,7 @@ dessin-anime - diff --git a/src/app/features/consultation/consultation.component.ts b/src/app/features/consultation/consultation.component.ts index c6aa4e66..ff7fefdd 100644 --- a/src/app/features/consultation/consultation.component.ts +++ b/src/app/features/consultation/consultation.component.ts @@ -9,6 +9,7 @@ import { PollUtilities } from '../old-stuff/config/PollUtilities'; import { Comment } from '../../core/models/comment.model'; import { StorageService } from '../../core/services/storage.service'; import { ApiService } from '../../core/services/api.service'; +import { Stack } from '../../core/models/stack.model'; @Component({ selector: 'app-consultation', @@ -74,7 +75,7 @@ export class ConsultationComponent implements OnInit, OnDestroy { } } - updateVote() { + updateVote(votestack: Stack) { alert('TODO'); } diff --git a/src/app/routes-framadate.ts b/src/app/routes-framadate.ts index 05c20a5f..3b18424f 100644 --- a/src/app/routes-framadate.ts +++ b/src/app/routes-framadate.ts @@ -25,7 +25,7 @@ export const routes: Routes = [ path: 'poll/:slug/administration', loadChildren: () => import('./features/administration/administration.module').then((m) => m.AdministrationModule), - resolve: { poll: PollService }, + // resolve: { poll: PollService }, }, { path: 'poll/:slug/consultation', @@ -35,7 +35,7 @@ export const routes: Routes = [ { path: 'poll/:slug/participation', loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule), - resolve: { poll: PollService }, + // resolve: { poll: PollService }, }, { path: 'oldstuff', diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 229e5d01..b0fcef5a 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,12 +4,12 @@ const backendApiUrlsInDev = { local: '/api/v1', - // remote: 'http://localhost:8000/api/v1', - remote: 'https://framadate-api.cipherbliss.com/api/v1', + remote: 'http://localhost:8000/api/v1', + // remote: 'https://framadate-api.cipherbliss.com/api/v1', }; const apiV1 = { - // baseHref: 'http://localhost:8000/api/v1', - baseHref: 'https://framadate-api.cipherbliss.com/api/v1', + baseHref: 'http://localhost:8000/api/v1', + // baseHref: 'https://framadate-api.cipherbliss.com/api/v1', api_new_poll: '/poll/', api_get_poll: '/poll/{id}', api_new_vote_stack: '/poll/{id}/answer',