Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
abe451e3
authored
Aug 14, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update of user data after submission
parent
63ad8475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
sails/src/assets/scripts/modules/supervisor/controllers/setup.js
sails/src/assets/scripts/modules/supervisor/controllers/setup.js
View file @
abe451e3
...
@@ -116,25 +116,24 @@ dashboardControllers.controller('SetupCtrl', function SetupCtrl(
...
@@ -116,25 +116,24 @@ dashboardControllers.controller('SetupCtrl', function SetupCtrl(
// Modify the name in the header
// Modify the name in the header
$scope
.
name
=
data
.
name
+
' '
+
data
.
surname
;
$scope
.
name
=
data
.
name
+
' '
+
data
.
surname
;
// Modify the user data in session
// Modify the user data in session
user
.
name
=
data
.
name
;
$scope
.
user
.
name
=
data
.
name
;
user
.
surname
=
data
.
surname
;
$scope
.
user
.
surname
=
data
.
surname
;
user
.
address
=
data
.
address
;
$scope
.
user
.
address
=
data
.
address
;
user
.
phone
=
data
.
phone
;
$scope
.
user
.
phone
=
data
.
phone
;
user
.
email
=
data
.
email
;
$scope
.
user
.
email
=
data
.
email
;
user
.
lang
=
data
.
lang
;
$scope
.
user
.
lang
=
data
.
lang
;
user
.
pic
=
data
.
pic
;
$scope
.
user
.
pic
=
data
.
pic
;
user
.
role
=
data
.
role
;
$scope
.
user
.
role
=
data
.
role
;
// Delete because at the beginning the variable user is bind
// Delete because at the beginning the variable user is bind
// with the form
// with the form
delete
user
.
password
;
delete
user
.
password
;
delete
user
.
password_confirm
;
delete
user
.
password_confirm
;
$window
.
sessionStorage
.
user
=
JSON
.
stringify
(
$scope
.
user
);
$window
.
sessionStorage
.
user
=
JSON
.
stringify
(
user
);
// $location.path("/students");
// $location.path("/students");
$scope
.
$apply
();
//
$scope.$apply();
})
})
.
error
(
function
()
{
.
error
(
function
()
{
ngToast
.
danger
({
content
:
$translate
.
instant
(
'data_no_saved'
)
});
ngToast
.
danger
({
content
:
$translate
.
instant
(
'data_no_saved'
)
});
...
...
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