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
7159785a
Commit
7159785a
authored
Apr 12, 2017
by
Χάρης Παπαδόπουλος
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: adjusting director view to SSO CAS login
parent
140d97e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
9 deletions
+61
-9
drupal/modules/epaldeploysystem/config/optional/user.role.epal.yml
...dules/epaldeploysystem/config/optional/user.role.epal.yml
+45
-0
source/app.ts
source/app.ts
+1
-1
source/components/school.home.ts
source/components/school.home.ts
+1
-1
source/containers/main.ts
source/containers/main.ts
+2
-2
source/services/helper-data-service.ts
source/services/helper-data-service.ts
+12
-5
No files found.
drupal/modules/epaldeploysystem/config/optional/user.role.epal.yml
0 → 100644
View file @
7159785a
langcode
:
el
status
:
true
dependencies
:
{
}
id
:
epal
label
:
epal
weight
:
4
is_admin
:
null
permissions
:
-
'
add
epal
student
course
field
entities'
-
'
add
epal
student
epal
chosen
entities'
-
'
add
epal
student
sector
field
entities'
-
'
add
epal
users
entities'
-
'
delete
epal
student
course
field
entities'
-
'
delete
epal
student
epal
chosen
entities'
-
'
delete
epal
student
sector
field
entities'
-
'
delete
epal
users
entities'
-
'
edit
epal
class
limits
entities'
-
'
edit
epal
student
course
field
entities'
-
'
edit
epal
student
epal
chosen
entities'
-
'
edit
epal
student
sector
field
entities'
-
'
edit
epal
users
entities'
-
'
view
published
epal
student
course
field
entities'
-
'
view
published
epal
student
epal
chosen
entities'
-
'
view
published
epal
student
sector
field
entities'
-
'
view
published
epal
users
entities'
-
'
view
unpublished
epal
student
course
field
entities'
-
'
view
unpublished
epal
student
epal
chosen
entities'
-
'
view
unpublished
epal
student
sector
field
entities'
-
'
view
unpublished
epal
users
entities'
-
'
view
published
eepal
admin
area
entities'
-
'
view
published
eepal
prefecture
entities'
-
'
view
published
eepal
region
entities'
-
'
view
published
eepal
school
entities'
-
'
view
published
eepal
sectors
entities'
-
'
view
published
eepal
sectors
in
epal
entities'
-
'
view
published
eepal
specialties
in
epal
entities'
-
'
view
published
eepal
specialty
entities'
-
'
view
unpublished
eepal
admin
area
entities'
-
'
view
unpublished
eepal
prefecture
entities'
-
'
view
unpublished
eepal
region
entities'
-
'
view
unpublished
eepal
school
entities'
-
'
view
unpublished
eepal
sectors
entities'
-
'
view
unpublished
eepal
sectors
in
epal
entities'
-
'
view
unpublished
eepal
specialties
in
epal
entities'
-
'
view
unpublished
eepal
specialty
entities'
source/app.ts
View file @
7159785a
...
@@ -80,5 +80,5 @@ class MyLocalization extends NgLocalization {
...
@@ -80,5 +80,5 @@ class MyLocalization extends NgLocalization {
})
})
class
AppModule
{}
class
AppModule
{}
enableProdMode
();
//
enableProdMode();
platformBrowserDynamic
().
bootstrapModule
(
AppModule
);
platformBrowserDynamic
().
bootstrapModule
(
AppModule
);
source/components/school.home.ts
View file @
7159785a
...
@@ -65,7 +65,7 @@ export default class SchoolHome implements OnInit {
...
@@ -65,7 +65,7 @@ export default class SchoolHome implements OnInit {
this
.
authToken
=
loginInfoToken
.
auth_token
;
this
.
authToken
=
loginInfoToken
.
auth_token
;
this
.
authRole
=
loginInfoToken
.
auth_role
;
this
.
authRole
=
loginInfoToken
.
auth_role
;
if
(
this
.
authToken
&&
this
.
authToken
.
length
>
0
)
if
(
this
.
authToken
&&
this
.
authToken
.
length
>
0
)
this
.
router
.
navigate
([
'
/
submited-pre
view
'
]);
this
.
router
.
navigate
([
'
/
director-
view
'
]);
return
loginInfoToken
;
return
loginInfoToken
;
},
{});
},
{});
}
}
...
...
source/containers/main.ts
View file @
7159785a
...
@@ -83,7 +83,7 @@ export default class Main {
...
@@ -83,7 +83,7 @@ export default class Main {
{},
{},
middleware
,
middleware
,
// tools ? [ ...enhancers, tools ] : enhancers);
// tools ? [ ...enhancers, tools ] : enhancers);
//
tools);
tools
);
);
//
);
}
}
}
}
source/services/helper-data-service.ts
View file @
7159785a
...
@@ -521,9 +521,16 @@ export class HelperDataService implements OnInit, OnDestroy{
...
@@ -521,9 +521,16 @@ export class HelperDataService implements OnInit, OnDestroy{
{
{
let
SchoolIdNew
=
SchoolId
.
toString
();
let
SchoolIdNew
=
SchoolId
.
toString
();
let
SelectIdNew
=
SelectId
.
toString
();
let
SelectIdNew
=
SelectId
.
toString
();
this
.
loginInfo$
.
forEach
(
loginInfoToken
=>
{
this
.
authToken
=
loginInfoToken
.
get
(
0
).
auth_token
;
});
this
.
loginInfo$
.
getValue
().
forEach
(
loginInfoToken
=>
{
this
.
authToken
=
loginInfoToken
.
auth_token
;
this
.
authRole
=
loginInfoToken
.
auth_role
;
});
console
.
log
(
"
authToken=
"
+
this
.
authToken
);
console
.
log
(
"
authRole=
"
+
this
.
authRole
);
let
headers
=
new
Headers
({
let
headers
=
new
Headers
({
"
Content-Type
"
:
"
application/json
"
,
"
Content-Type
"
:
"
application/json
"
,
});
});
...
@@ -559,7 +566,7 @@ export class HelperDataService implements OnInit, OnDestroy{
...
@@ -559,7 +566,7 @@ export class HelperDataService implements OnInit, OnDestroy{
()
=>
console
.
log
(
"
Saving Profile
"
));
()
=>
console
.
log
(
"
Saving Profile
"
));
});
});
}
}
...
@@ -588,7 +595,7 @@ export class HelperDataService implements OnInit, OnDestroy{
...
@@ -588,7 +595,7 @@ export class HelperDataService implements OnInit, OnDestroy{
()
=>
console
.
log
(
"
Saving Capacity
"
));
()
=>
console
.
log
(
"
Saving Capacity
"
));
});
});
}
}
...
...
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