Commit 645a089 1 parent 481d2a1 commit 645a089 Copy full SHA for 645a089
File tree 1 file changed +11
-4
lines changed
extensions/vscode/webviews/homeView/src/components
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 221
221
/>
222
222
</div>
223
223
</template>
224
- <div
225
- v-if="!isPreContentRecord(home.selectedContentRecord)"
226
- class="last-deployment-details"
227
- >
224
+ <div v-if="showContentButton" class="last-deployment-details">
228
225
<vscode-button
229
226
appearance="secondary"
230
227
@click="viewContent"
@@ -552,6 +549,16 @@ const onAssociateDeployment = () => {
552
549
});
553
550
};
554
551
552
+ const showContentButton = computed(() => {
553
+ const record = home.selectedContentRecord;
554
+ if (!record) {
555
+ return;
556
+ }
557
+ return (
558
+ record?.dashboardUrl || (!isPreContentRecord(record) && record.logsUrl)
559
+ );
560
+ });
561
+
555
562
const viewContent = () => {
556
563
const record = home.selectedContentRecord;
557
564
if (!record) {
You can’t perform that action at this time.
0 commit comments