Fix button to add course in course list

pull/4862/head
Angel Fernando Quiroz Campos 1 year ago
parent cd1c56e529
commit 6645444887
  1. 8
      assets/vue/layouts/MyCourses.vue

@ -19,12 +19,10 @@
<script setup>
import Button from 'primevue/button';
import { computed } from 'vue';
import { useStore } from 'vuex';
import { useI18n } from 'vue-i18n';
import { storeToRefs } from "pinia"
import { useSecurityStore } from "../store/securityStore"
const store = useStore();
const { t } = useI18n();
const isTeacher = computed(() => store.getters['security/hasRole']('ROLE_TEACHER'));
const { isTeacher } = storeToRefs(useSecurityStore())
</script>

Loading…
Cancel
Save