diff --git a/src/app/app.component.html b/src/app/app.component.html index 889f66a..7485816 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,5 +1,5 @@ -
+
факты13
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 594764f..70b52ed 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -11,9 +11,9 @@ import {AuthService} from "./services/auth.service"; export class AppComponent { baseUtils: BaseUtils = new BaseUtils(); social_media_links: {link: string, name: string}[] = [ - {name: "Дискорд", link: "/discord"}, + {name: "Дискорд", link: "discord"}, {name: "Телеграм", link: "https://t.me/facti13"}, - {name: "Стим", link: "/steam"} + {name: "Стим", link: "steam"} ] logined: string | null = null; @@ -22,8 +22,11 @@ export class AppComponent { public auth_service: AuthService) { } - go2url(urls: string[]) { - this.router.navigate(urls) + go2url(urls: string[], reopen: boolean = false) { + if (reopen) + window.open(urls.join("/"), "_self") + else + this.router.navigate(urls) } logout() { diff --git a/src/app/pages/banlist-page/banlist-page.component.html b/src/app/pages/banlist-page/banlist-page.component.html index 0e4259b..f4e7386 100644 --- a/src/app/pages/banlist-page/banlist-page.component.html +++ b/src/app/pages/banlist-page/banlist-page.component.html @@ -1,6 +1,6 @@

Бан лист

-

Скоро и ты сюда попадешь браток{{total==0?'':'как и остальные ' + total + ' карликов'}}

+

Скоро и ты сюда попадешь браток {{total==0?'':'как и остальные ' + total + ' карликов'}}

diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index e01fee5..93b8850 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -28,7 +28,7 @@ export class AuthService { logout() { sessionStorage.removeItem(AuthService.KEY); - window.open("api/auth/logout") + window.open("api/auth/logout", "_self") } isAuth() {