Skip to content

Commit

Permalink
add more features for super admin
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Jul 31, 2024
1 parent 0031b93 commit 065d134
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 80 deletions.
6 changes: 6 additions & 0 deletions src/api/backend-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ export default {
getProjects() {
return API.get<getProjects_RV>('projects');
},
getMismatchProjects() {
return API.get('projects/mismatch-projects');
},
getProjectsLanguages() {
return API.get('projects/project-languages');
},
createProject(data: createProject_ED) {
return API.post('projects/', data);
},
Expand Down
6 changes: 0 additions & 6 deletions src/layouts/AppLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@
</q-item-section>
<q-item-section> {{ $t('settings') }} </q-item-section>
</q-item>
<q-item v-show="getUserInfos.super_admin" v-ripple clickable to="/admin">
<q-item-section avatar>
<q-icon name="vpn_key" />
</q-item-section>
<q-item-section> {{ $t('admin') }} </q-item-section>
</q-item>
</q-list>
</div>
<q-separator vertical inset class="q-mx-lg" />
Expand Down
Loading

0 comments on commit 065d134

Please sign in to comment.