Skip to content

Commit 7c41663

Browse files
committed
update detail sidebar logic
1 parent 57c2bed commit 7c41663

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/grants/templates/grants/detail/template-grant-details.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ <h3>About</h3>
389389
This grant has not verified their ownership of the twitter account listed.
390390
</b-card-text>
391391

392-
<div v-if="grant.is_on_team" class="text-center">
392+
<div v-if="(grant.is_on_team || isStaff)" class="text-center">
393393

394394
<template v-if="user_code">
395395
<b-button v-b-modal.modal-start-twitter-verification variant="primary" class="btn btn-block btn-primary">
@@ -409,7 +409,7 @@ <h3>About</h3>
409409
</template>
410410

411411
<!-- Idle Grant -->
412-
<template v-if="grant.active && grant.is_on_team && grant.is_idle">
412+
<template v-if="grant.active && (grant.is_on_team || isStaff) && grant.is_idle">
413413
<b-card-text>
414414
<p class="font-weight-semibold mb-2">
415415
<i class="fal fa-exclamation-circle mr-1 text-danger"></i>
@@ -425,7 +425,7 @@ <h3>About</h3>
425425

426426

427427
<!-- L2 contributions -->
428-
<template v-if="grant.active && grant.is_on_team && grant.tenants.includes('ETH')">
428+
<template v-if="grant.active && (grant.is_on_team || isStaff) && grant.tenants.includes('ETH')">
429429
<b-card-text>
430430
<p class="font-weight-semibold mb-2">
431431
<i class="fal fa-wallet mr-1"></i>
@@ -441,7 +441,7 @@ <h3>About</h3>
441441

442442

443443
<!-- Edit Grant Button -->
444-
<template v-if="grant.active && !grant.is_idle && (grant.is_on_team || isStaff)">
444+
<template v-if="!grant.is_idle && (grant.is_on_team || isStaff)">
445445
<hr class="my-4">
446446

447447
<b-card-text>

0 commit comments

Comments
 (0)