aboutsummaryrefslogtreecommitdiff
path: root/resources/vue/mixins/TreeMixin.js
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-03-28 14:22:10 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-03-28 14:22:10 +0100
commit3cd4367aa9918a75867c6433c07d5c4da7335534 (patch)
treea151723697b652de0da924588c54bf6d6d2fb93f /resources/vue/mixins/TreeMixin.js
parentc8f1ca4f62af776ceed440e1f0e192d6302b0c27 (diff)
Diffstat (limited to 'resources/vue/mixins/TreeMixin.js')
-rw-r--r--resources/vue/mixins/TreeMixin.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/resources/vue/mixins/TreeMixin.js b/resources/vue/mixins/TreeMixin.js
index 43ef469..72bc235 100644
--- a/resources/vue/mixins/TreeMixin.js
+++ b/resources/vue/mixins/TreeMixin.js
@@ -11,8 +11,7 @@ export const TreeMixin = {
data() {
return {
currentNode: null,
- showProgressIndicatorTimeout: 500,
- page: 0
+ showProgressIndicatorTimeout: 500
};
},
computed: {
@@ -28,7 +27,7 @@ export const TreeMixin = {
]),
totalCourseCount() {
- return this.getNodeCoursesTotal(this.currentNode.id);
+ return this.getNodeCoursesTotal(this.currentNode?.id);
}
},
methods: {
@@ -84,15 +83,9 @@ export const TreeMixin = {
nodeUrl(node_id, semester = null ) {
return STUDIP.URLHelper.getURL('', { node_id, semester })
},
- courseUrl(courseId) {
- return STUDIP.URLHelper.getURL('dispatch.php/course/details/index/' + courseId)
- },
profileUrl(username) {
return STUDIP.URLHelper.getURL('dispatch.php/profile', { username })
},
- exportUrl() {
- return STUDIP.URLHelper.getURL('dispatch.php/tree/export_csv');
- },
editNode(editUrl, id) {
STUDIP.Dialog.fromURL(
editUrl + '/' + id,
@@ -129,10 +122,5 @@ export const TreeMixin = {
page
});
}
- },
- watch: {
- page(current) {
- this.updateOffset(current);
- }
}
}