Skip to content
Snippets Groups Projects
Commit 670f8ba9 authored by Julian's avatar Julian
Browse files

Hide chips until everything is loaded fully

parent c7e7b2a8
No related branches found
No related tags found
1 merge request!49Resolve "AbsenceReasonGroupSelect triggers input erroneously"
......@@ -55,8 +55,7 @@ export default {
* Determines whether the chips can be shown.
*
* Due to the eagerness of vuetify, we can only mount the chip-group, after the selected item has been loaded.
* Otherwise, vuetify would set the value to the first existing one. However, if it's possible to not be
* absent, we can show the chip-group directly, as the present chip is hardcoded.
* Otherwise, vuetify would set the value to the first existing one.
*
* @return {boolean} Whether to mount the chip-group
*/
......@@ -64,8 +63,7 @@ export default {
return (
(!this.$apollo.queries.absenceReasons.loading &&
this.absenceReasons.length) ||
this.customAbsenceReasonsExists ||
(this.allowEmpty && this.value === this.emptyValue)
this.customAbsenceReasonsExists
);
},
customAbsenceReasonsExists() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment