Skip to content

Commit

Permalink
fix a bug with colors
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaomiDEV committed Aug 5, 2024
1 parent 13c6a7d commit cffa5dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modals/MemberEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
isEditing.value = !member.value.uuid;
// set color
updateColor();
}
function updateColor(){
if(!member.value) return;
if(member.value.color && member.value.color !== "#000000"){
addMaterialColors(member.value.color, self.value.$el);
} else {
Expand Down Expand Up @@ -202,7 +208,7 @@
<IonTextarea mode="md" fill="outline" auto-grow :label="$t('members:edit.description')" labelPlacement="floating" v-model="member!.description" />
</IonItem>
<IonItem button lines="none">
<Color v-model="member!.color" @update:model-value="present">
<Color v-model="member!.color" @update:model-value="updateColor">
<IonLabel>
{{ $t("members:edit.color") }}
</IonLabel>
Expand Down

0 comments on commit cffa5dc

Please sign in to comment.