Skip to content

Commit

Permalink
Improved UI in questionnaire display
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Dec 17, 2024
1 parent 4f02871 commit ed27a67
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div v-else class="container-fluid p-0">
<div v-if="!userResponse" class="row">
<div v-if="!userResponse && !loading" class="row">
<div class="col-md-12 language-selection">
<div class="form-group">
<label class="language-selector" for="language-select">{{
Expand Down Expand Up @@ -145,6 +145,7 @@ export default {
methods: {
async onMounted() {
this.userResponse = this.userResponseData;
this.loading = true;
const fpPromise = FingerprintJS.load();
this.browserFingerprintId = await fpPromise.then((fp) => fp.get()).then((result) => result.visitorId);
this.displayLoginPrompt = !this.userLoggedIn() && !this.userResponse;
Expand All @@ -155,6 +156,7 @@ export default {
this.displayLoginPrompt = !this.userResponse;
}
this.initQuestionnaireDisplay();
this.loading = false;
},
userLoggedIn() {
return this.user && this.user.id;
Expand Down

0 comments on commit ed27a67

Please sign in to comment.