Skip to content

Commit c1cf8f6

Browse files
committed
added thumbnail to workspaces, only show image if available
1 parent 0675a0c commit c1cf8f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

vue/src/components/SnapshotList.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
:to="createRouteLink(snapshot.pk)">
1919
<v-list-item-avatar tile size="64" class="my-2">
2020
<v-img
21-
v-if="snapshot.screenshot"
21+
v-if="snapshot.thumbnail"
2222
:src="djangobaseurl + '/media/' + snapshot.thumbnail">
2323
</v-img>
2424
</v-list-item-avatar>
@@ -28,6 +28,7 @@
2828
</v-list-item-content>
2929
<v-list-item-action style="margin:0 0 4px 0; align-self: flex-end;">
3030
<v-btn icon
31+
v-if="snapshot.screenshot"
3132
v-on:click.stop="doThis"
3233
:href="djangobaseurl + '/media/' + snapshot.screenshot + '?download'"
3334
target="_blank">

vue/src/views/Workspace.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export default {
144144
title
145145
topic
146146
screenshot
147+
thumbnail
147148
}
148149
}
149150
@@ -160,6 +161,7 @@ export default {
160161
title
161162
topic
162163
screenshot
164+
thumbnail
163165
}
164166
}
165167
}

0 commit comments

Comments
 (0)