Skip to content

Commit 3a85e94

Browse files
committed
fix inactive social links when no Vue
1 parent 6f15a5d commit 3a85e94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/popup/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
<div class="flex items-center">
1010
<a
11-
v-if="isRootUrl && showcase && showcase.isPublic"
11+
v-if="isRootUrl && showcase && showcase.hasVue && showcase.isPublic"
1212
:href="`https://vuetelemetry.com/explore/${showcase.slug}`"
1313
target="_blank"
1414
class="mr-3"
1515
>
1616
<AppButton size="small" appearance="primary" outlined>Open</AppButton>
1717
</a>
18-
<AppButton v-else-if="isRootUrl && showcase && !showcase.isPublic && !savingError" @click.native="saveShowcase" size="small" appearance="primary" class="mr-3">{{ saving ? 'Saving...' : 'Save' }}</AppButton>
18+
<AppButton v-else-if="isRootUrl && showcase && showcase.hasVue && !showcase.isPublic && !savingError" @click.native="saveShowcase" size="small" appearance="primary" class="mr-3">{{ saving ? 'Saving...' : 'Save' }}</AppButton>
1919

2020
<a href="https://twitter.com/VueTelemetry" target="_blank" class="mr-3">
2121
<TwitterIcon class="w-5 h-5 hover:text-primary-500" />
@@ -173,7 +173,7 @@
173173
</div>
174174
</div>
175175

176-
<div v-else-if="!showcase.hasVue" class="absolute top-0 left-0 w-full h-full flex items-center justify-center">
176+
<div v-else-if="!showcase.hasVue" class=" pointer-events-none absolute top-0 left-0 w-full h-full flex items-center justify-center">
177177
<div class="font-bold-body-weight text-eight">Vue is not used on this website</div>
178178
</div>
179179
</div>

0 commit comments

Comments
 (0)