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
be6ea069
authored
Sep 26, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed error on admin/login
parent
944b0459
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sails/src/assets/scripts/modules/admin/controllers/admin.js
sails/src/assets/scripts/modules/admin/controllers/admin.js
View file @
be6ea069
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
//-------------------
//-------------------
// Admin Controller
// Admin Controller
//-------------------
//-------------------
dashboardControllers
.
controller
(
'AdminCtrl'
,
function
AdminCtrl
(
$
s
cope
,
$window
)
{
dashboardControllers
.
controller
(
'AdminCtrl'
,
function
AdminCtrl
(
$
rootS
cope
,
$window
)
{
// The last parameter, config, is injected from config.js (defined in dashboardConfig module)
// The last parameter, config, is injected from config.js (defined in dashboardConfig module)
// Assign values this way (like an object) to ensure it's the parent scope $scope.user.name ='Super';
// Assign values this way (like an object) to ensure it's the parent scope $scope.user.name ='Super';
$
s
cope
.
user
=
JSON
.
parse
(
$window
.
sessionStorage
.
user
);
$
rootS
cope
.
user
=
JSON
.
parse
(
$window
.
sessionStorage
.
user
);
});
});
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