Poll activity

This commit is contained in:
Lumaa 2024-03-09 16:09:03 +01:00
parent 2c63ec3f39
commit c167717825
1 changed files with 10 additions and 1 deletions

View File

@ -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()