webui: Follow-up on Pull Request #838

- Update document
- Fix the install script
- Remove last commit to maintain login session
This commit is contained in:
Sukchan Lee 2021-03-12 09:20:58 +09:00
parent 7848b6c966
commit 569f98f92c
8 changed files with 9 additions and 9 deletions

View File

@ -383,7 +383,7 @@ Install the dependencies to run WebUI
```bash
$ cd webui
$ npm install
$ npm ci --no-optional
```
The WebUI runs as an [npm](https://www.npmjs.com/) script.

View File

@ -342,7 +342,7 @@ Install the dependencies to run WebUI
```bash
$ cd ~/open5gs
$ cd webui
$ npm install
$ npm ci --no-optional
```
The WebUI runs as an [npm](https://www.npmjs.com/) script.

View File

@ -127,7 +127,7 @@ Install the dependencies to run WebUI
```bash
$ cd webui
$ npm install
$ npm ci --no-optional
```
The WebUI runs as an [npm](https://www.npmjs.com/) script.

View File

@ -162,7 +162,7 @@ Install the dependencies to run WebUI
```bash
$ cd webui
$ npm install
$ npm ci --no-optional
```
The WebUI runs as an [npm](https://www.npmjs.com/) script.

View File

@ -161,7 +161,7 @@ Install the dependencies to run WebUI
```bash
$ cd webui
$ npm install
$ npm ci --no-optional
```
The WebUI runs as an [npm](https://www.npmjs.com/) script.

View File

@ -206,7 +206,7 @@ Install the dependencies to run WebUI
```bash
$ cd webui
$ npm install
$ npm ci --no-optional
```
The WebUI runs as an [npm](https://www.npmjs.com/) script.

View File

@ -228,7 +228,7 @@ if [[ $RC != 0 ]]; then
fi
print_status "Build the Open5GS WebUI..."
exec_cmd "cd ./${PACKAGE}-${VERSION}/webui && npm install && npm run build"
exec_cmd "cd ./${PACKAGE}-${VERSION}/webui && npm ci --no-optional && npm run build"
print_status "Install the Open5GS WebUI..."
exec_cmd "mv ./${PACKAGE}-${VERSION}/webui /usr/lib/node_modules/${PACKAGE}"

View File

@ -12,7 +12,7 @@ export default (Component) => class extends React.Component {
const sessionData = await session.getSession();
let isLoggedIn = false;
if (sessionData.user && sessionData.user.username && sessionData.authToken) {
if (sessionData.user && sessionData.user.username) {
isLoggedIn = true;
}
@ -22,4 +22,4 @@ export default (Component) => class extends React.Component {
render () {
return <Component {...this.props} />
}
}
}