diff --git a/backend/src/models/contact.go b/backend/src/models/contact.go
index 0ab56825..3d904c91 100644
--- a/backend/src/models/contact.go
+++ b/backend/src/models/contact.go
@@ -8,7 +8,6 @@ import (
type ContactPhone struct {
Phone string `json:"phone" bson:"phone"`
- Valid bool `json:"valid" bson:"valid"`
}
type ContactSocials struct {
@@ -22,7 +21,6 @@ type ContactSocials struct {
type ContactMail struct {
Mail string `json:"mail" bson:"mail"`
Personal bool `json:"personal" bson:"personal"`
- Valid bool `json:"valid" bson:"valid"`
}
type Gender string
@@ -51,11 +49,11 @@ type Contact struct {
Mails []ContactMail `json:"mails" bson:"mails"`
}
-// HasPhone (phone) returns true if contact has a valid phone
+// HasPhone (phone) returns true if contact has a phone
// number that is a case insensitive partial match to `phone`
func (c *Contact) HasPhone(p string) bool {
for _, s := range c.Phones {
- if strings.Contains(strings.ToLower(s.Phone), strings.ToLower(p)) && s.Valid {
+ if strings.Contains(strings.ToLower(s.Phone), strings.ToLower(p)) {
return true
}
}
@@ -66,7 +64,7 @@ func (c *Contact) HasPhone(p string) bool {
// that is a case insensitive partial match to `mail`
func (c *Contact) HasMail(m string) bool {
for _, s := range c.Mails {
- if strings.Contains(strings.ToLower(s.Mail), strings.ToLower(m)) && s.Valid {
+ if strings.Contains(strings.ToLower(s.Mail), strings.ToLower(m)) {
return true
}
}
diff --git a/backend/src/router/contacts_test.go b/backend/src/router/contacts_test.go
index 4ee0df7c..5731fe03 100644
--- a/backend/src/router/contacts_test.go
+++ b/backend/src/router/contacts_test.go
@@ -17,7 +17,6 @@ var (
Contact1 *models.Contact
Contact1Phone = models.ContactPhone{
Phone: "1",
- Valid: true,
}
Contact1Socials = models.ContactSocials{
Facebook: "facebook",
@@ -29,7 +28,6 @@ var (
Contact1Mail = models.ContactMail{
Mail: "2",
Personal: true,
- Valid: true,
}
Contact1Data = mongodb.CreateContactData{
Phones: append(make([]models.ContactPhone, 0), Contact1Phone),
@@ -39,7 +37,6 @@ var (
Contact2 *models.Contact
Contact2Phone = models.ContactPhone{
Phone: "3",
- Valid: true,
}
Contact2Socials = models.ContactSocials{
Facebook: "facebook2",
@@ -51,7 +48,6 @@ var (
Contact2Mail = models.ContactMail{
Mail: "4",
Personal: true,
- Valid: true,
}
Contact2Data = mongodb.CreateContactData{
Phones: append(make([]models.ContactPhone, 0), Contact2Phone),
diff --git a/frontend/src/components/ContactCard.vue b/frontend/src/components/ContactCard.vue
index f4cae330..606a7084 100644
--- a/frontend/src/components/ContactCard.vue
+++ b/frontend/src/components/ContactCard.vue
@@ -122,10 +122,7 @@
-
@@ -168,15 +158,6 @@
>
{{ phone.phone }}
-
-
- Invalid
-
-
diff --git a/frontend/src/components/ParticipationsCard.vue b/frontend/src/components/ParticipationsCard.vue
index 8d143a6a..1215c4b0 100644
--- a/frontend/src/components/ParticipationsCard.vue
+++ b/frontend/src/components/ParticipationsCard.vue
@@ -1,63 +1,44 @@
-
-
-
-
- Participations
-
-
-
- No participations found.
-
-
-
-
-
-
-
-
-
-
-
- Past Participations
-
+
+ Participations
+
+
+
+
+
+
+
+ Past Participations
+
+
-
-
-
-
-
+
+
+
+
+
+
+ No participations found.
+
diff --git a/frontend/src/components/cards/WorkflowCard.vue b/frontend/src/components/cards/WorkflowCard.vue
index 0a82461f..628e1ed4 100644
--- a/frontend/src/components/cards/WorkflowCard.vue
+++ b/frontend/src/components/cards/WorkflowCard.vue
@@ -78,65 +78,69 @@ watch(
-
-
-
-
-
+
+
+
-
-