Skip to content

Commit

Permalink
Merge pull request #800 from threefoldtech/development_dashboard_farm…
Browse files Browse the repository at this point in the history
…Details_ui

change farm details ui
  • Loading branch information
AhmedHanafy725 authored Jul 12, 2023
2 parents 5f996ea + 4c1464f commit cf149c3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/dashboard/src/explorer/components/FarmDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@
<v-list-item-content>
<v-list-item-title> Stellar Address </v-list-item-title>
</v-list-item-content>
<span style="width: 60%">{{ farm.stellarAddress || "None" }}</span>
<v-text-field
class="py-2"
v-if="farm.stellarAddress"
style="max-width: 70%"
:value="farm.stellarAddress"
readonly
hide-details
append-outer-icon="mdi-content-copy"
@click:append-outer="copy(farm.stellarAddress)"
solo
/>
<span v-else>None</span>
</v-list-item>
</v-list>
</v-container>
Expand All @@ -42,5 +53,9 @@ import { IFarm } from "../graphql/api";
@Component({})
export default class FarmDetails extends Vue {
@Prop({ required: true }) farm!: IFarm;
copy(address: string) {
navigator.clipboard.writeText(address);
this.$toasted.show("Copied!");
}
}
</script>

0 comments on commit cf149c3

Please sign in to comment.