Topics
@if (loading() && topics().length === 0) {
} @else if (topics().length === 0) {
No topics yet. Publish a message to create one.
} @else {
@for (topic of topics(); track topic.name) {
{{ topic.message_count }} messages
@if (topic.last_message_at) {
{{ nsToDate(topic.last_message_at) | date:'HH:mm:ss' }}
}
}
}
@if (selectedTopic(); as topic) {
@if (subscriptions().length === 0) {
No subscriptions for this topic.
} @else {
| ID | Endpoint | Status |
@for (sub of subscriptions(); track sub.id) {
| {{ sub.id.substring(0, 12) }}... |
{{ sub.endpoint }} |
@if (sub.active) {
Active
} @else {
Inactive
}
|
}
}
}