Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Merge requests
!458
Draft: Resolve "Include class register in calendar dialog"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: Resolve "Include class register in calendar dialog"
269-include-class-register-in-calendar-dialog
into
master
Overview
0
Commits
4
Pipelines
3
Changes
4
Open
Julian
requested to merge
269-include-class-register-in-calendar-dialog
into
master
3 months ago
Overview
0
Commits
4
Pipelines
3
Changes
4
Expand
Closes
#269
0
0
Merge request reports
Viewing commit
2a164552
Prev
Next
Show latest version
4 files
+
181
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
2a164552
Create component to open documentation dialog for specific lesson events in timetable
· 2a164552
Julian
authored
3 months ago
aleksis/apps/alsijil/frontend/components/injectables/lessonEventDialog/DocumentationForLessonEvent.vue
0 → 100644
+
70
−
0
Options
<
script
>
import
lessonEventAdditionalCalendarActionMixin
from
"
aleksis.apps.chronos/components/calendar_feeds/mixins/lessonEventAdditionalCalendarActionMixin.js
"
;
import
{
documentationsForLessonEvents
}
from
"
./documentations.graphql
"
;
import
MobileFullscreenDialog
from
"
aleksis.core/components/generic/dialogs/MobileFullscreenDialog.vue
"
;
import
Documentation
from
"
../../coursebook/documentation/Documentation.vue
"
;
import
SecondaryActionButton
from
"
aleksis.core/components/generic/buttons/SecondaryActionButton.vue
"
;
export
default
{
name
:
"
DocumentationForLessonEvent
"
,
components
:
{
Documentation
,
MobileFullscreenDialog
,
SecondaryActionButton
},
mixins
:
[
lessonEventAdditionalCalendarActionMixin
],
apollo
:
{
documentations
:
{
query
:
documentationsForLessonEvents
,
skip
()
{
return
this
.
dialogOpen
;
},
variables
()
{
return
{
lessonEvents
:
[
this
.
lesson
.
meta
.
id
],
start
:
this
.
lesson
.
start
,
end
:
this
.
lesson
.
end
,
};
},
update
:
(
data
)
=>
data
.
items
,
},
},
data
()
{
return
{
dialogOpen
:
false
,
dirty
:
false
,
documentations
:
[],
extraMarks
:
[],
absenceReasons
:
[],
subjects
:
[],
};
},
};
</
script
>
<
template
>
<mobile-fullscreen-dialog
v-model=
"dialogOpen"
max-width=
"500px"
:persistent=
"dirty"
>
<template
#activator
="
{ on, attrs }">
<secondary-action-button
v-bind=
"attrs"
v-on=
"on"
icon-text=
"mdi-book-education-outline"
i18n-key=
"alsijil.coursebook.lesson_event_button"
/>
</
template
>
<div
/>
<!-- dialog view -> deactivate dialog -->
<!-- cancel | save (through lesson-summary) -->
<documentation
v-for=
"documentation in documentations"
:key=
"documentation.id"
:affected-query=
"$apollo.queries.documentations"
:documentation=
"documentation"
:extra-marks=
"extraMarks"
:absence-reasons=
"absenceReasons"
:subjects=
"subjects"
@
close=
"dialogOpen = false"
@
dirty=
"dirty = $event"
/>
</mobile-fullscreen-dialog>
</template>
Loading