Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to votable arbitrator election ballot(s) #312

Closed

Conversation

kylanhurt
Copy link
Contributor

Fixes #310

Description

Simply added a clickable link to /trails/ballot/{ballot_name}

Test scenarios

Connected to testnet where there are elections and made sure the links worked

Checklist:

  • I have performed a self-review of my own code
  • I have cleaned up the code in the areas my change touches
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings
  • I have removed any unnecessary console messages
  • I have included all english text to the translation file and/or created a new issue with the required translations for the currently supported languages
  • I have tested for mobile functionality and responsiveness

@netlify
Copy link

netlify bot commented Sep 4, 2023

Deploy Preview for telos-app-native-staging ready!

Name Link
🔨 Latest commit fd0ceef
🔍 Latest deploy log https://app.netlify.com/sites/telos-app-native-staging/deploys/64f521c77a491100080576b6
😎 Deploy Preview https://deploy-preview-312--telos-app-native-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -29,10 +29,18 @@
<q-td key="ballot_name" class="ballot_name">
<div class="info">
<div class="ballot-name">
<a v-if="props.row.ballot_name" :href="`/trails/ballot/${props.row.ballot_name}`">
{{
props.row.ballot_name ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
props.row.ballot_name ||
props.row.ballot_name

a tag is only displayed if props.row.ballot_name exists so no need for condition

@@ -29,10 +29,18 @@
<q-td key="ballot_name" class="ballot_name">
<div class="info">
<div class="ballot-name">
<a v-if="props.row.ballot_name" :href="`/trails/ballot/${props.row.ballot_name}`">
{{
props.row.ballot_name ||
`${props.row.election_id}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`${props.row.election_id}`

see previous suggestion, will never reach condition

</a>
<span v-else>
{{
props.row.ballot_name ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
props.row.ballot_name ||

unnec condition, will display link if exists

@donnyquixotic donnyquixotic self-requested a review October 16, 2023 19:39
@donnyquixotic donnyquixotic mentioned this pull request Oct 16, 2023
@kylanhurt
Copy link
Contributor Author

Closing because arbitration is being put on hold for now

@kylanhurt kylanhurt closed this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants