Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Kolego
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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®
Onboarding
AlekSIS-App-Kolego
Commits
96d36b2b
Verified
Commit
96d36b2b
authored
10 months ago
by
Julian
Committed by
Jonathan Weth
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Use generic chip for AbsenceReasons
parent
86e17472
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!20
Resolve "Create AbsenceReason Select field"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/kolego/frontend/components/Absences.vue
+2
-2
2 additions, 2 deletions
aleksis/apps/kolego/frontend/components/Absences.vue
aleksis/apps/kolego/frontend/components/absences.graphql
+6
-0
6 additions, 0 deletions
aleksis/apps/kolego/frontend/components/absences.graphql
with
8 additions
and
2 deletions
aleksis/apps/kolego/frontend/components/Absences.vue
+
2
−
2
View file @
96d36b2b
<
script
setup
>
import
AbsenceReasonChip
from
"
./AbsenceReasonChip.vue
"
;
import
InlineCRUDList
from
"
aleksis.core/components/generic/InlineCRUDList.vue
"
;
import
DateTimeField
from
"
aleksis.core/components/generic/forms/DateTimeField.vue
"
;
</
script
>
...
...
@@ -67,8 +68,7 @@ import DateTimeField from "aleksis.core/components/generic/forms/DateTimeField.v
</
template
>
<
template
#reason=
"{ item }"
>
<v-chip>
{{
item
.
reason
.
shortName
}}
</v-chip
>
<absence-reason-chip
:absence-reason=
"item.reason"
short
/>
</
template
>
<!-- eslint-disable-next-line vue/valid-v-slot -->
<
template
#reason.field=
"{ attrs, on }"
>
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/kolego/frontend/components/absences.graphql
+
6
−
0
View file @
96d36b2b
...
...
@@ -9,6 +9,8 @@ query absences($orderBy: [String], $filters: JSONString) {
id
shortName
name
colour
default
}
comment
datetimeStart
...
...
@@ -30,6 +32,8 @@ mutation createAbsences($input: [BatchCreateAbsenceInput]!) {
id
shortName
name
colour
default
}
comment
datetimeStart
...
...
@@ -58,6 +62,8 @@ mutation updateAbsences($input: [BatchPatchAbsenceInput]!) {
id
shortName
name
colour
default
}
comment
datetimeStart
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment