diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-03-28 14:22:10 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-03-28 14:22:10 +0100 |
| commit | 3cd4367aa9918a75867c6433c07d5c4da7335534 (patch) | |
| tree | a151723697b652de0da924588c54bf6d6d2fb93f /resources/vue/mixins/TreeMixin.js | |
| parent | c8f1ca4f62af776ceed440e1f0e192d6302b0c27 (diff) | |
wipbiest-4760
Diffstat (limited to 'resources/vue/mixins/TreeMixin.js')
| -rw-r--r-- | resources/vue/mixins/TreeMixin.js | 16 |
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); - } } } |
