Skip to content

Commit

Permalink
order projects in project hub
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Jan 2, 2025
1 parent a48d6fe commit 785f858
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/ProjectsHub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
</template>

<script lang="ts">
import { mapState, mapWritableState, mapActions } from 'pinia';
import { mapState, mapWritableState } from 'pinia';
import { LocalStorage } from 'quasar';
import { project_extended_t } from 'src/api/backend-types';
import { useProjectStore } from 'src/pinia/modules/project';
Expand Down Expand Up @@ -217,7 +217,6 @@ export default defineComponent({
this.projectCardWidth = Math.trunc(window.innerWidth / 7);
},
methods: {
...mapActions(useProjectStore, ['sortProjects']),
toggleProjectView() {
this.listMode = !this.listMode;
LocalStorage.set('project_view', this.listMode);
Expand All @@ -240,7 +239,6 @@ export default defineComponent({
this.projects = response.data.projects as project_extended_t[];
this.visibleProjects = this.projects;
this.totalPages = response.data.totalPages;
this.sortProjects(this.projects);
this.initLoading = false;
})
.catch((error) => {
Expand Down

0 comments on commit 785f858

Please sign in to comment.