Commit 25766f5a4f2a2ed904dfeaf5bc777ea0a388f7eb

Authored by Shikha Mishra
1 parent fc9854ffb8

make filename viewable in assignment and syllabus screen

src/pages/Academic/assignment.vue
... ... @@ -264,12 +264,17 @@
264 264 v-if="!props.item.teacherId"
265 265 >{{ props.item.schoolId.name }}</td>
266 266 <td class="text-xs-center td td-row">
267   - <a :href="props.item.file" target="_blank" style="text-decoration: none!important;">
268   - <v-btn flat block @click="generatePDF2Canvas(props.item)" :loading="loadingPdf">
269   - <span>
270   - <h5>{{props.item.fileName}}</h5>
271   - </span>
272   - </v-btn>
  267 + <a
  268 + class="hover"
  269 + :href="props.item.file"
  270 + target="_blank"
  271 + style="text-decoration: none!important; color: grey"
  272 + @click="generatePDF2Canvas(props.item)"
  273 + :loading="loadingPdf"
  274 + >
  275 + <!-- <span> -->
  276 + <h5>{{props.item.fileName}}</h5>
  277 + <!-- </span> -->
273 278 </a>
274 279 </td>
275 280 <td class="text-xs-center td td-row">
... ... @@ -927,4 +932,11 @@ export default {
927 932 this.getClass();
928 933 },
929 934 };
930   -</script>
931 935 \ No newline at end of file
  936 +</script>
  937 +
  938 +<style scoped>
  939 +a:hover :hover {
  940 + text-decoration: underline !important;
  941 + color: blue;
  942 +}
  943 +</style>
932 944 \ No newline at end of file
... ...
src/pages/Academic/syllabus.vue
... ... @@ -208,15 +208,16 @@
208 208 dark
209 209 >{{ props.item.fileType }}</v-btn>-->
210 210 <a
  211 + class="hover"
211 212 :href="props.item.documentUrl"
212 213 target="_blank"
213   - style="text-decoration: none!important;"
  214 + style="text-decoration: none!important; color: grey"
214 215 >
215   - <v-btn flat block>
216   - <span>
217   - <h5>{{props.item.fileName}}</h5>
218   - </span>
219   - </v-btn>
  216 + <!-- <v-btn flat block>
  217 + <span>-->
  218 + <h5>{{props.item.fileName}}</h5>
  219 + <!-- </span>
  220 + </v-btn>-->
220 221 </a>
221 222 </td>
222 223 <td class="text-xs-center td td-row">
... ... @@ -806,4 +807,11 @@ export default {
806 807 this.getClass();
807 808 },
808 809 };
809   -</script>
810 810 \ No newline at end of file
  811 +</script>
  812 +
  813 +<style scoped>
  814 +a:hover :hover {
  815 + text-decoration: underline !important;
  816 + color: blue;
  817 +}
  818 +</style>
811 819 \ No newline at end of file
... ...