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
19afc434
Verified
Commit
19afc434
authored
4 months ago
by
Julian
Committed by
Jonathan Weth
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace v-chip-group
parent
a0a2f7f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!49
Resolve "AbsenceReasonGroupSelect triggers input erroneously"
Pipeline
#193699
passed
4 months ago
Stage: prepare
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/kolego/frontend/components/AbsenceReasonGroupSelect.vue
+10
-12
10 additions, 12 deletions
...s/kolego/frontend/components/AbsenceReasonGroupSelect.vue
with
10 additions
and
12 deletions
aleksis/apps/kolego/frontend/components/AbsenceReasonGroupSelect.vue
+
10
−
12
View file @
19afc434
...
...
@@ -63,8 +63,10 @@ export default {
if
(
this
.
customAbsenceReasons
)
{
return
true
;
}
return
(
!
this
.
$apollo
.
queries
.
absenceReasons
.
loading
&&
this
.
absenceReasons
.
length
);
return
(
!
this
.
$apollo
.
queries
.
absenceReasons
.
loading
&&
this
.
absenceReasons
.
length
);
},
customAbsenceReasonsExists
()
{
return
this
.
customAbsenceReasons
.
length
>
0
;
...
...
@@ -109,20 +111,15 @@ export default {
</
script
>
<
template
>
<v-chip-group
column
:value=
"innerValue"
@
change=
"updateInnerValue"
mandatory
v-if=
"showChips"
>
<div
class=
"d-flex flex-wrap"
style=
"gap: 0.2em"
v-if=
"showChips"
>
<v-chip
v-if=
"allowEmpty"
color=
"success"
:value=
"emptyValue"
:input-value=
"innerValue === emptyValue"
filter
outlined
@
click.
native=
"$event.stopPropagation(
)"
@
click.
stop=
"updateInnerValue(emptyValue
)"
>
{{
$t
(
"
kolego.absence_reason.present
"
)
}}
<v-avatar
right
v-if=
"loadSelectedChip && innerValue === emptyValue"
>
...
...
@@ -135,10 +132,11 @@ export default {
:absence-reason=
"absenceReason"
filter
outlined
:input-value=
"innerValue === absenceReason.id"
:loading=
"loadSelectedChip && absenceReason.id === innerValue"
@
click.
native=
"$event.stopPropagation(
)"
@
click.
stop=
"updateInnerValue(absenceReason.id
)"
/>
</
v-chip-group
>
</
div
>
<v-skeleton-loader
v-else
type=
"chip@4"
class=
"d-flex flex-wrap gap"
/>
</
template
>
...
...
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