mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
fix unsubscribe
This commit is contained in:
@@ -33,7 +33,8 @@ namespace LiveGameFeed.Data
|
|||||||
new Feed()
|
new Feed()
|
||||||
{
|
{
|
||||||
Description = "Match started",
|
Description = "Match started",
|
||||||
MatchId = 1
|
MatchId = 1,
|
||||||
|
CreatedAt = DateTime.Now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -51,7 +52,8 @@ namespace LiveGameFeed.Data
|
|||||||
new Feed()
|
new Feed()
|
||||||
{
|
{
|
||||||
Description = "Match started",
|
Description = "Match started",
|
||||||
MatchId = 2
|
MatchId = 2,
|
||||||
|
CreatedAt = DateTime.Now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<div class="feed-table">
|
<div class="chat-table">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<button type="button" class="btn btn-default btn-md" (click)="setSubscription(true)" *ngIf="!subscribed">
|
<button type="button" class="btn btn-default btn-md" (click)="setSubscription(true)" *ngIf="!subscribed">
|
||||||
Subscribe to feed
|
Subscribe to feed
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-danger btn-md" (click)="unsubscribe(false)" *ngIf="subscribed">
|
<button type="button" class="btn btn-danger btn-md" (click)="setSubscription(false)" *ngIf="subscribed">
|
||||||
Unubscribe
|
Unubscribe
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ th, td {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-table {
|
||||||
|
height: 240px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.feed-time {
|
.feed-time {
|
||||||
color:brown;
|
color:brown;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user