Poll activity
This commit is contained in:
parent
2c63ec3f39
commit
c167717825
|
@ -151,8 +151,10 @@ struct NotificationRow: View {
|
||||||
return "activity.status.\(nameStr)"
|
return "activity.status.\(nameStr)"
|
||||||
case .update:
|
case .update:
|
||||||
return "activity.update.\(nameStr)"
|
return "activity.update.\(nameStr)"
|
||||||
|
case .poll:
|
||||||
|
return "activity.poll.\(nameStr)"
|
||||||
default:
|
default:
|
||||||
return "activity.unknown" // follow requests & polls
|
return "activity.unknown" // follow requests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,6 +170,8 @@ struct NotificationRow: View {
|
||||||
return Color.orange
|
return Color.orange
|
||||||
case .status, .update: // update and post are techn. the same
|
case .status, .update: // update and post are techn. the same
|
||||||
return Color.yellow
|
return Color.yellow
|
||||||
|
case .poll:
|
||||||
|
return Color.green
|
||||||
default:
|
default:
|
||||||
return Color.gray
|
return Color.gray
|
||||||
}
|
}
|
||||||
|
@ -209,6 +213,11 @@ struct NotificationRow: View {
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.frame(width: size, height: size)
|
.frame(width: size, height: size)
|
||||||
|
case .poll:
|
||||||
|
Image(systemName: "checklist")
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
|
.frame(width: size, height: size)
|
||||||
default:
|
default:
|
||||||
Image(systemName: "questionmark")
|
Image(systemName: "questionmark")
|
||||||
.resizable()
|
.resizable()
|
||||||
|
|
Loading…
Reference in New Issue