Skip to content

Commit e7c4d52

Browse files
committed
allow preview renders in readonly courseCardBrowse
1 parent 0418f68 commit e7c4d52

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/common-ui/src/components/CourseCardBrowser.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
<template #append>
4141
<v-speed-dial
42-
v-if="editMode === 'full'"
4342
v-model="c.isOpen"
4443
location="left center"
4544
transition="slide-x-transition"
@@ -57,6 +56,7 @@
5756
</template>
5857

5958
<v-btn
59+
v-if="editMode === 'full'"
6060
key="tags"
6161
icon
6262
size="small"
@@ -68,6 +68,7 @@
6868
</v-btn>
6969

7070
<v-btn
71+
v-if="editMode === 'full'"
7172
key="flag"
7273
icon
7374
size="small"
@@ -85,13 +86,13 @@
8586
<card-loader :qualified_id="c.id" :view-lookup="viewLookup" class="elevation-1" />
8687

8788
<tags-input
88-
v-show="internalEditMode === 'tags'"
89+
v-show="internalEditMode === 'tags' && editMode === 'full'"
8990
:course-i-d="courseId"
9091
:card-i-d="c.id.includes('-') ? c.id.split('-')[1] : c.id"
9192
class="mt-4"
9293
/>
9394

94-
<div v-show="internalEditMode === 'flag'" class="mt-4">
95+
<div v-show="internalEditMode === 'flag' && editMode === 'full'" class="mt-4">
9596
<v-btn color="error" variant="outlined" @click="c.delBtn = true"> Delete this card </v-btn>
9697
<span v-if="c.delBtn" class="ml-4">
9798
<span class="mr-2">Are you sure?</span>

0 commit comments

Comments
 (0)