Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
e-epal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
0c8ecfe0
Commit
0c8ecfe0
authored
Aug 03, 2017
by
Ασπασία Κατσή
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formcontrols
parent
7153be9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
source/components/home.ts
source/components/home.ts
+3
-6
No files found.
source/components/home.ts
View file @
0c8ecfe0
import
{
NgRedux
}
from
"
@angular-redux/store
"
;
import
{
Component
,
OnDestroy
,
OnInit
}
from
"
@angular/core
"
;
import
{
FormBuilder
,
FormGroup
}
from
"
@angular/forms
"
;
import
{
ActivatedRoute
,
Params
,
Router
}
from
"
@angular/router
"
;
import
{
CookieService
}
from
"
ngx-cookie
"
;
import
{
BehaviorSubject
,
Subscription
}
from
"
rxjs/Rx
"
;
...
...
@@ -17,7 +16,7 @@ import { IAppState } from "../store/store";
selector
:
"
home
"
,
template
:
`
<div>
<form
[formGroup]="formGroup"
method = "POST" action="{{apiEndPoint}}/oauth/login{{apiEndPointParams}}" #form>
<form method = "POST" action="{{apiEndPoint}}/oauth/login{{apiEndPointParams}}" #form>
<!-- <input type="hidden" name="X-oauth-enabled" value="true"> -->
<div class="bg-warning" style="padding: 2em;">
...
...
@@ -51,7 +50,7 @@ import { IAppState } from "../store/store";
})
export
default
class
Home
implements
OnInit
,
OnDestroy
{
private
formGroup
:
FormGroup
;
private
authToken
:
string
;
private
authRole
:
string
;
private
name
:
any
;
...
...
@@ -61,7 +60,7 @@ export default class Home implements OnInit, OnDestroy {
private
apiEndPointParams
=
API_ENDPOINT_PARAMS
;
private
loginInfoSub
:
Subscription
;
constructor
(
private
fb
:
FormBuilder
,
constructor
(
private
_ata
:
LoginInfoActions
,
private
_ngRedux
:
NgRedux
<
IAppState
>
,
private
activatedRoute
:
ActivatedRoute
,
...
...
@@ -72,8 +71,6 @@ export default class Home implements OnInit, OnDestroy {
this
.
authToken
=
""
;
this
.
authRole
=
""
;
this
.
name
=
""
;
this
.
formGroup
=
this
.
fb
.
group
({
});
this
.
loginInfo$
=
new
BehaviorSubject
(
LOGININFO_INITIAL_STATE
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment