Skip to content

Commit df39e21

Browse files
authored
Merge pull request #49 from GedasFX/dev
Dev
2 parents db5f9ab + 16a4b38 commit df39e21

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

Alderto.Web/ClientApp/src/app/layout/account.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export class AccountComponent implements OnInit {
3131
}
3232

3333
public logout() {
34-
this.account.logout();
34+
this.account.logout();
35+
window.location.href = '/';
3536
}
3637

3738
private getDefaultAvatar(discriminator): string {

Alderto.Web/ClientApp/src/app/models/message.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export interface IMessage {
22
authorUsername: string;
33
authorAvatarId: string;
44
createdAt: any;
5-
content: string;
5+
contents: string;
66
}

Alderto.Web/ClientApp/src/app/views/home/news.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99
</div>
1010
<div class="card-body" style="white-space:pre-wrap;">
11-
{{news.content}}
11+
{{ news.contents }}
1212
</div>
1313
</div>
1414
</div>

Alderto.Web/Controllers/NewsController.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Threading.Tasks;
33
using Alderto.Services;
44
using Alderto.Web.Models;
5+
using Microsoft.AspNetCore.Authorization;
56
using Microsoft.AspNetCore.Mvc;
67

78
namespace Alderto.Web.Controllers
@@ -15,7 +16,7 @@ public NewsController(INewsProvider news)
1516
_news = news;
1617
}
1718

18-
[HttpGet("api/news")]
19+
[HttpGet("api/news"), AllowAnonymous]
1920
public async Task<IActionResult> GetLatestNewsAsync(int count = 10)
2021
{
2122
if (count > 100)

Alderto.sln

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Global
2828
{413603EA-D515-469A-B055-757528FEDDA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
2929
{413603EA-D515-469A-B055-757528FEDDA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
3030
{413603EA-D515-469A-B055-757528FEDDA8}.Release|Any CPU.Build.0 = Release|Any CPU
31-
{413603EA-D515-469A-B055-757528FEDDA8}.Testing|Any CPU.ActiveCfg = Testing|Any CPU
32-
{413603EA-D515-469A-B055-757528FEDDA8}.Testing|Any CPU.Build.0 = Testing|Any CPU
31+
{413603EA-D515-469A-B055-757528FEDDA8}.Testing|Any CPU.ActiveCfg = Release|Any CPU
32+
{413603EA-D515-469A-B055-757528FEDDA8}.Testing|Any CPU.Build.0 = Release|Any CPU
3333
{13535E42-876C-42E9-88BB-27D291B47C19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3434
{13535E42-876C-42E9-88BB-27D291B47C19}.Debug|Any CPU.Build.0 = Debug|Any CPU
3535
{13535E42-876C-42E9-88BB-27D291B47C19}.Release|Any CPU.ActiveCfg = Release|Any CPU

0 commit comments

Comments
 (0)