From 20d3adcb91f6c2078e94e10a6ca0b5ed9a94d725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Robles?= Date: Fri, 27 Sep 2024 11:34:28 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Logo=20displayed=20incorrectly?= =?UTF-8?q?=20(#473)=20(#474)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent issue: https://github.com/sequentech/meta/issues/1016 --- avBooth/booth-directive/booth-directive.js | 8 ++++++++ .../success-screen-directive/success-screen-directive.js | 1 + 2 files changed, 9 insertions(+) diff --git a/avBooth/booth-directive/booth-directive.js b/avBooth/booth-directive/booth-directive.js index 33556ea9..09f3bd28 100644 --- a/avBooth/booth-directive/booth-directive.js +++ b/avBooth/booth-directive/booth-directive.js @@ -978,6 +978,13 @@ angular.module('avBooth') return futureResult.promise; } + function setParentElection() { + if (!scope.parentElection) { + return; + } + scope.election = scope.parentElection; + } + function retrieveElectionConfig(electionId) { if (scope.state === stateEnum.errorScreen) { return; @@ -1366,6 +1373,7 @@ angular.module('avBooth') getSessionEndTime: getSessionEndTime, getSessionStartTime: getSessionStartTime, isStateCompatibleWithCountdown: isStateCompatibleWithCountdown, + setParentElection: setParentElection, // stateData stores information used by the directive being shown. // Its content depends on the current state. diff --git a/avBooth/success-screen-directive/success-screen-directive.js b/avBooth/success-screen-directive/success-screen-directive.js index f253896b..78f15504 100644 --- a/avBooth/success-screen-directive/success-screen-directive.js +++ b/avBooth/success-screen-directive/success-screen-directive.js @@ -574,6 +574,7 @@ angular.module('avBooth') // redirects to next election scope.goToNextElection = function () { scope.setState(scope.stateEnum.electionChooserScreen, {}); + scope.setParentElection(); }; scope.skippedCount = skippedCount();