mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-14 09:19:41 +00:00
Fix loading of classlists in SocialIssuesAcc.vue
This commit is contained in:
@@ -136,8 +136,8 @@ export default {
|
||||
issueIsLoading: false,
|
||||
actionIsLoading: false,
|
||||
actionAreLoaded: false,
|
||||
socialIssuesClassList: `col-form-label ${document.querySelector("input#chill_activitybundle_activity_socialIssues").getAttribute("required") ? "required" : ""}`,
|
||||
socialActionsClassList: `col-form-label ${document.querySelector("input#chill_activitybundle_activity_socialActions").getAttribute("required") ? "required" : ""}`,
|
||||
socialIssuesClassList: 'col-form-label',
|
||||
socialActionsClassList: 'col-form-label',
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -158,6 +158,17 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
/* Load classNames after element is present */
|
||||
const socialActionsEl = document.querySelector("input#chill_activitybundle_activity_socialActions");
|
||||
if (socialActionsEl && socialActionsEl.hasAttribute("required")) {
|
||||
this.socialActionsClassList += ' required';
|
||||
}
|
||||
|
||||
const socialIssuessEl = document.querySelector("input#chill_activitybundle_activity_socialIssues");
|
||||
if (socialIssuessEl && socialIssuessEl.hasAttribute("required")) {
|
||||
this.socialIssuesClassList += ' required';
|
||||
}
|
||||
|
||||
/* Load other issues in multiselect */
|
||||
this.issueIsLoading = true;
|
||||
this.actionAreLoaded = false;
|
||||
|
Reference in New Issue
Block a user