mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 03:52:26 +01:00
feat: introduce feed management for individual and professor modules across frontend and backend services.
This commit is contained in:
@@ -20,6 +20,7 @@ import { defineStore } from "pinia";
|
||||
const moduleStore = defineStore("moduleStore", {
|
||||
state: () => ({
|
||||
modules: new Map<string, Module>(),
|
||||
isProfessorFeed: false,
|
||||
}),
|
||||
actions: {
|
||||
addModule(module: Module) {
|
||||
@@ -55,6 +56,9 @@ const moduleStore = defineStore("moduleStore", {
|
||||
containsModule(module: Module): boolean {
|
||||
return this.modules.has(module.uuid);
|
||||
},
|
||||
setProfessorFeed(isProf: boolean) {
|
||||
this.isProfessorFeed = isProf;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user