Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frag.jetzt SWTP 2022
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Marc Tröll
frag.jetzt SWTP 2022
Commits
27a75ab2
Commit
27a75ab2
authored
6 years ago
by
Lukas Mauß
Browse files
Options
Downloads
Patches
Plain Diff
Add new function to landing-page which decides if you have to loding or can create session
parent
996265d3
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/home/new-landing/new-landing.component.html
+1
-1
1 addition, 1 deletion
...pp/components/home/new-landing/new-landing.component.html
src/app/components/home/new-landing/new-landing.component.ts
+15
-1
15 additions, 1 deletion
src/app/components/home/new-landing/new-landing.component.ts
with
16 additions
and
2 deletions
src/app/components/home/new-landing/new-landing.component.html
+
1
−
1
View file @
27a75ab2
<div
fxLayout=
"column"
fxLayoutAlign=
"center center"
fxlayoutgap=
"50px"
fxFill
>
<app-room-join></app-room-join>
<button
mat-fab
class=
"fab-extended"
color=
"accent"
(click)=
"
openLoginDialog
()"
>
<button
mat-fab
class=
"fab-extended"
color=
"accent"
(click)=
"
createSession
()"
>
<mat-icon
class=
"add"
>
add
</mat-icon>
Create Session
</button>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/home/new-landing/new-landing.component.ts
+
15
−
1
View file @
27a75ab2
...
...
@@ -5,6 +5,8 @@ import { Router } from '@angular/router';
import
{
TranslateService
}
from
'
@ngx-translate/core
'
;
import
{
LanguageService
}
from
'
../../../services/util/language.service
'
;
import
{
LoginPageComponent
}
from
'
../login-page/login-page.component
'
;
import
{
AuthenticationService
}
from
'
../../../services/http/authentication.service
'
;
import
{
User
}
from
'
../../../models/user
'
;
@
Component
({
selector
:
'
app-new-landing
'
,
...
...
@@ -13,15 +15,27 @@ import { LoginPageComponent } from '../login-page/login-page.component';
})
export
class
NewLandingComponent
implements
OnInit
{
user
:
User
;
constructor
(
private
router
:
Router
,
public
dialog
:
MatDialog
,
private
translateService
:
TranslateService
,
protected
langService
:
LanguageService
)
{
protected
langService
:
LanguageService
,
public
authenticationService
:
AuthenticationService
)
{
langService
.
langEmitter
.
subscribe
(
lang
=>
translateService
.
use
(
lang
));
}
ngOnInit
()
{
this
.
translateService
.
use
(
localStorage
.
getItem
(
'
currentLang
'
));
this
.
authenticationService
.
watchUser
.
subscribe
(
newUser
=>
this
.
user
=
newUser
);
}
createSession
()
{
if
(
this
.
user
)
{
this
.
openCreateRoomDialog
();
}
else
{
this
.
openLoginDialog
();
}
}
openCreateRoomDialog
():
void
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment