diff options
author | Sukanya Pandey <sukapan1@in.ibm.com> | 2020-12-16 17:38:01 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-02-02 01:32:54 +0300 |
commit | be6858c06bfbd1e06935ad01b743c1043f74488a (patch) | |
tree | ddd6bf979b7a045d4ac16cd723a773d161e92b18 /src/router | |
parent | d50ba5f915e16be042617d6f472839a684f88ef9 (diff) | |
download | webui-vue-be6858c06bfbd1e06935ad01b743c1043f74488a.tar.xz |
Add power restore policy page
- This page will show how the system boots once power
is restored after a power disturbance.
- API used to fetch the JSON:
/redfish/v1/JsonSchemas/ComputerSystem/ComputerSystem.json
- API used to fetch the current policy and to save updated policy:
/redfish/v1/Systems/system/
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I203bd3c5d26071b882cce6b9950cdb3fb1deb212
Diffstat (limited to 'src/router')
-rw-r--r-- | src/router/routes.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/router/routes.js b/src/router/routes.js index 9a9b7137..533f1859 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -16,6 +16,7 @@ import ManagePowerUsage from '@/views/Control/ManagePowerUsage'; import NetworkSettings from '@/views/Configuration/NetworkSettings'; import Overview from '@/views/Overview'; import PageNotFound from '@/views/PageNotFound'; +import PowerRestorePolicy from '@/views/Control/PowerRestorePolicy'; import ProfileSettings from '@/views/ProfileSettings'; import RebootBmc from '@/views/Control/RebootBmc'; import SecuritySettings from '@/views/Configuration/SecuritySettings'; @@ -197,6 +198,14 @@ const routes = [ }, }, { + path: '/control/power-restore-policy', + name: 'power-restore-policy', + component: PowerRestorePolicy, + meta: { + title: i18n.t('appPageTitle.powerRestorePolicy'), + }, + }, + { path: '/configuration/network-settings', name: 'network-settings', component: NetworkSettings, |