Skip to content

Commit

Permalink
Merge pull request #15 from Brendan-Lawton/master
Browse files Browse the repository at this point in the history
incorrect api key prompot and fix for text on mobile
  • Loading branch information
billyc authored Jun 20, 2024
2 parents 1257116 + 6a86aa8 commit 4166bbb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
35 changes: 20 additions & 15 deletions sounding-board/src/views/SoundingBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ export default class VueComponent extends Vue {
subdescriptions: {
base: this.yaml.descriptionInput.Parkraum.subdescriptions["scenario1"],
Besucher_teuer_Anwohner_preiswert: this.yaml.descriptionInput.Parkraum.subdescriptions
["scenario2"],
["scenario2"],
Besucher_teuer_Anwohner_teuer: this.yaml.descriptionInput.Parkraum.subdescriptions
["scenario3"],
["scenario3"],
},
},
fahrenderVerkehr: {
Expand All @@ -419,7 +419,7 @@ export default class VueComponent extends Vue {
MautFuerAlle: this.yaml.descriptionInput.fahrenderVerkehr.subdescriptions["scenario3"],
zeroEmissionsZone: this.yaml.descriptionInput.fahrenderVerkehr.subdescriptions["scenario4"],
zeroEmissionsZonePlusMaut: this.yaml.descriptionInput.fahrenderVerkehr.subdescriptions
["scenario5"],
["scenario5"],
autofrei: this.yaml.descriptionInput.fahrenderVerkehr.subdescriptions["scenario6"],
},
},
Expand Down Expand Up @@ -725,8 +725,8 @@ export default class VueComponent extends Vue {
const vote = JSON.stringify(this.voteConditions)
})
this.voteConditions.timeStamp = new Date().toLocaleString('de-DE');
this.voteConditions.timeStamp = new Date().toLocaleString('de-DE');
// Get request from python api-server
try {
Expand Down Expand Up @@ -909,10 +909,10 @@ li.notes-item {
margin-bottom: 0.25rem;
display: flex;
flex: 1;
width: 100%;
width: 98%;
padding-bottom: 25px;
flex-wrap: wrap;
padding-left: 2em;
padding-left: 2em;
}
Expand Down Expand Up @@ -957,14 +957,15 @@ li.notes-item {
.header-mobile-text {
display: block;
left: 80px;
position: absolute;
text-wrap: wrap;
width: 80%;
padding-right: 20px;
font-size: 11px;
text-align: left;
top: 42px;
left: 80px;
position: absolute;
text-wrap: wrap;
width: auto;
padding-right: 20px;
font-size: 11px;
text-align: left;
top: 42px;
max-width: fit-content;
}
.description {
Expand Down Expand Up @@ -1375,6 +1376,10 @@ button.is-huge.factor-option.preset-buttons:hover {
margin-left: 5px;
}
button.is-small.factor-option {
font-size: 1.1em;
}
}
Expand Down
3 changes: 3 additions & 0 deletions sounding-board/src/views/StartSession.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default class VueComponent extends Vue {
.then(text => (lastSession = text))
} catch (e) {
console.log('Error fetching paths :-(')
prompt("incorrect API access key. Please press OK and try again.")
this.getApiAuthorization()
return
}
Expand Down Expand Up @@ -109,6 +110,7 @@ export default class VueComponent extends Vue {
console.log(json)
} catch (e) {
console.log('Error fetching paths :-(')
prompt("incorrect API access key. Please press OK and try again.")
this.getApiAuthorization()
return
}
Expand Down Expand Up @@ -144,6 +146,7 @@ export default class VueComponent extends Vue {
.then(json => (sessionVotes = json))
} catch (e) {
console.log('Error fetching paths :-(')
prompt("incorrect API access key. Please press OK and try again.")
this.getApiAuthorization()
return
}
Expand Down

0 comments on commit 4166bbb

Please sign in to comment.