From 2f1309bf6fdce59933a87e61d816ab42e8bb2600 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 8 Nov 2021 18:25:04 +0100 Subject: [PATCH] :bug: fix compile with rename pollservice functions --- src/app/core/services/poll.service.ts | 10 +++++----- .../form/steps/step-one/step-one.component.html | 2 +- .../poll-results-detailed.component.ts | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index d378cc74..de4173b8 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -166,9 +166,9 @@ export class PollService implements Resolve { ) { if (this.pass_hash) { this.storageService.vote_stack.pass_hash = this.pass_hash; - await this.loadPollBycustom_urlWithPasswordHash(wantedcustom_url, this.pass_hash); + await this.loadPollByCustomUrlWithPasswordHash(wantedcustom_url, this.pass_hash); } else { - await this.loadPollBycustom_url(wantedcustom_url); + await this.loadPollByCustomUrl(wantedcustom_url); } } const loadedPoll = this._poll.getValue(); @@ -198,7 +198,7 @@ export class PollService implements Resolve { } } - public async loadPollBycustom_url(custom_url: string): Promise { + public async loadPollByCustomUrl(custom_url: string): Promise { if (custom_url) { const poll: Poll | undefined = await this.apiService.getPollByCustomUrl(custom_url); @@ -214,7 +214,7 @@ export class PollService implements Resolve { } } - public async loadPollBycustom_urlWithPasswordHash(custom_url: string, hash: string): Promise { + public async loadPollByCustomUrlWithPasswordHash(custom_url: string, hash: string): Promise { if (custom_url) { const poll: Poll | undefined = await this.apiService.getPollByCustomUrlWithHash(custom_url, hash); @@ -359,7 +359,7 @@ export class PollService implements Resolve { this.apiService.createPoll(newpoll).then((resp) => { console.log('poll created resp', resp); console.log('TODO fill admin_key'); - this.admin_key = resp.data.admin_key; + // this.admin_key = resp.data.admin_key; }); } diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.html b/src/app/features/administration/form/steps/step-one/step-one.component.html index c88d7ea2..550913b3 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.html +++ b/src/app/features/administration/form/steps/step-one/step-one.component.html @@ -7,7 +7,7 @@
- +