mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
implemented 'OtherLvPlan' to view other users' timetables
This commit is contained in:
+28
-2
@@ -33,7 +33,20 @@ const app = Vue.createApp({
|
||||
"/Cis/Profil/View/"+data.uid;
|
||||
}
|
||||
},
|
||||
childactions: []
|
||||
childactions: [
|
||||
{
|
||||
label: Vue.computed(() => this.$p.t("lehre/stundenplan")),
|
||||
icon: "fas fa-calendar-days",
|
||||
type: "link",
|
||||
action: function(data) {
|
||||
const uid = JSON.parse(data.data).uid;
|
||||
const link = FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
'/Cis/OtherLvPlan/' + uid;
|
||||
return link;
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
student: {
|
||||
defaultaction: {
|
||||
@@ -44,7 +57,20 @@ const app = Vue.createApp({
|
||||
|
||||
}
|
||||
},
|
||||
childactions: []
|
||||
childactions: [
|
||||
{
|
||||
label: Vue.computed(() => this.$p.t("lehre/stundenplan")),
|
||||
icon: "fas fa-calendar-days",
|
||||
type: "link",
|
||||
action: function(data) {
|
||||
const uid = JSON.parse(data.data).uid;
|
||||
const link = FHC_JS_DATA_STORAGE_OBJECT.app_root +
|
||||
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
|
||||
'/Cis/OtherLvPlan/' + uid;
|
||||
return link;
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
room: {
|
||||
defaultaction: {
|
||||
|
||||
@@ -19,6 +19,7 @@ import DeadlineOverview from "../../components/Cis/Abgabetool/DeadlineOverview.j
|
||||
import Studium from "../../components/Cis/Studium/Studium.js";
|
||||
import StgOrgLvPlan from "../../components/Cis/LvPlan/StgOrg.js";
|
||||
import OverviewLvPlan from "../../components/Cis/LvPlan/OverviewLvPlan.js";
|
||||
import OtherLvPlan from "../../components/Cis/LvPlan/OtherLvPlan.js";
|
||||
|
||||
import ApiRenderers from '../../api/factory/renderers.js';
|
||||
import ApiRouteInfo from '../../api/factory/routeinfo.js';
|
||||
@@ -219,6 +220,16 @@ const router = VueRouter.createRouter({
|
||||
};
|
||||
}
|
||||
},
|
||||
{
|
||||
path: `/Cis/OtherLvPlan/:otherUid/:mode?/:focus_date?`,
|
||||
name: "OtherLvPlan",
|
||||
component: OtherLvPlan,
|
||||
props(route) {
|
||||
return {
|
||||
propsViewData: route.params
|
||||
};
|
||||
}
|
||||
},
|
||||
{
|
||||
path: `/Cis4`,
|
||||
name: 'Cis4',
|
||||
|
||||
Reference in New Issue
Block a user