diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-01-29 13:21:12 -0800 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-11 16:43:22 +0000 |
commit | 4148f2eee6313068d3223871005160b2902abb18 (patch) | |
tree | 5266cfee8f41eda2224479d2c911c3128988a38a /app/profile-settings/index.js | |
parent | b0a0847a8eb02ae21f755942799a81c6e3475e64 (diff) | |
download | phosphor-webui-master.tar.gz phosphor-webui-master.zip |
Adding a profile settings page so readonly and operator
roles are able to change their own password.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Iee9536255ad47f4df4af8746c1e01da37c407f2b
Diffstat (limited to 'app/profile-settings/index.js')
-rw-r--r-- | app/profile-settings/index.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/profile-settings/index.js b/app/profile-settings/index.js new file mode 100644 index 0000000..77947a7 --- /dev/null +++ b/app/profile-settings/index.js @@ -0,0 +1,25 @@ +/** + * A module for the Profile Settings page + * + * @module app/profile-settings/index + * @exports app/profile-settings/index + */ + +window.angular && (function(angular) { + 'use strict'; + + angular + .module('app.profileSettings', ['ngRoute', 'app.common.services']) + // Route configuration + .config([ + '$routeProvider', + function($routeProvider) { + $routeProvider.when('/profile-settings', { + 'template': + require('./controllers/profile-settings-controller.html'), + 'controller': 'profileSettingsController', + authenticated: true + }) + } + ]); +})(window.angular); |