Skip to content

Commit

Permalink
Order stackers; hide pub/priv on goraeverse
Browse files Browse the repository at this point in the history
  • Loading branch information
vcavallo committed Sep 30, 2022
1 parent 0001cbe commit a5da442
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
16 changes: 12 additions & 4 deletions interface/src/components/gora-detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<h1 class="tw-text-xl">
<span class="tw-mr-2">{{ theGora.name }}</span>
<span v-if="sType">
<v-chip color="success">
<v-chip v-if="myStack && myStack.hasOwnProperty('has')" color="success">
(x{{ myStack.has }})
<v-tooltip activator="parent">
You have {{ myStack.has }} of these
Expand All @@ -73,7 +73,7 @@
</v-chip>

<div class="tw-ml-2">
<v-btn color="info" icon v-if="thisGoraPub(goid)">
<v-btn color="info" icon v-if="iHostGora && thisGoraPub(goid)">
<v-icon>
mdi-eye
</v-icon>
Expand All @@ -82,7 +82,7 @@
</v-tooltip>
</v-btn>

<v-btn v-else icon color="grey">
<v-btn icon color="grey" v-else-if="iHostGora && !thisGoraPub(goid)">
<v-icon>
mdi-eye-off
</v-icon>
Expand Down Expand Up @@ -201,7 +201,7 @@
<v-expansion-panel-text>
<v-btn
class="tw-mr-2 tw-my-2"
v-for="stak in theGora.stak"
v-for="stak in stackHodlerOrdered"
:key="stak"
variant="flat"
color="info"
Expand Down Expand Up @@ -342,6 +342,14 @@ export default defineComponent({
"outgoingGivesFor",
]),
...mapGetters("meta", ["thisGoraTags", "thisGoraPub"]),
stackHodlerOrdered() {
if (this.sType) {
return this.theGora.stak.slice().sort((h, h2) => {
return h2.has - h.has
})
}
return []
},
nulStack(): Array {
if (this.theGora.hasOwnProperty('nul') && this.theGora.nul !== null) {
return this.theGora.nul
Expand Down
10 changes: 9 additions & 1 deletion interface/src/components/mine/my-one-manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

<v-btn
class="tw-mr-2 tw-my-2"
v-for="stak in theGora.stak"
v-for="stak in stackHodlerOrdered"
:key="stak"
variant="flat"
color="info"
Expand Down Expand Up @@ -411,6 +411,14 @@ export default defineComponent({
...mapState("logs", ["requests", "outgoing"]),
...mapGetters("logs", ["requestsForID", "outgoingFor", "outgoingTakesByID", "outgoingGivesFor"]),
...mapGetters("meta", ["thisGoraTags", "thisGoraPub"]),
stackHodlerOrdered() {
if (this.sType) {
return this.theGora.stak.slice().sort((h, h2) => {
return h2.has - h.has
})
}
return []
},
nulStack(): Array {
if (this.theGora.hasOwnProperty('nul') && this.theGora.nul !== null) {
return this.theGora.nul
Expand Down

0 comments on commit a5da442

Please sign in to comment.