File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1717 </v-col >
1818 </v-row >
1919 </div >
20+ <!-- For favorite -->
21+ <div class =" text-right mt-2" >
22+ <div >{{ topicsDetail.inst_ymdhi.slice(0, 10) }}</div >
23+ <v-btn icon variant =" text" :color =" favoriteColor" >
24+ <v-icon size =" x-large" left > mdi-star </v-icon >
25+ </v-btn >
26+ </div >
2027 </div >
2128
2229 <!-- Wysiwyg contents -->
@@ -51,6 +58,7 @@ const preview_token = route.query.preview_token;
5158const topicsDetail = ref (null );
5259const loading = ref (true );
5360const snackbar = useSnackbar ();
61+ const favoriteColor = ref (' grey' );
5462
5563const items = computed (() => {
5664 if (! topicsDetail .value ) {
7583 server: false
7684 });
7785 const d = response.details;
86+ favoriteColor.value = d.my_favorite_flg === true ? 'red' : 'grey';
7887 topicsDetail.value = {
7988 ...d,
8089 fileType: d?.ext_1?.key,
You can’t perform that action at this time.
0 commit comments