Skip to content

Commit eaa1f19

Browse files
committed
IsUnauthorized -> isUnauthorized
1 parent 995975f commit eaa1f19

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

dashboard/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import DeploymentOperator from './deployment/DeploymentOperator.js';
44
import StorageOperator from './storage/StorageOperator.js';
55
import NoOperator from './NoOperator.js';
66
import Loading from './util/Loading.js';
7-
import api, { IsUnauthorized } from './api/api.js';
7+
import api, { isUnauthorized } from './api/api.js';
88
import { Container, Segment, Message } from 'semantic-ui-react';
99
import { withAuth } from './auth/Auth.js';
1010

@@ -55,7 +55,7 @@ class App extends Component {
5555
this.setState({
5656
error: e.message
5757
});
58-
if (IsUnauthorized(e)) {
58+
if (sUnauthorized(e)) {
5959
this.props.doLogout();
6060
}
6161
}

dashboard/src/api/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function IsUnauthorized(e) {
1+
export function isUnauthorized(e) {
22
return (e.status === 401);
33
}
44

dashboard/src/deployment/DeploymentDetails.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ReactTimeout from 'react-timeout';
22
import React, { Component } from 'react';
3-
import api, { IsUnauthorized } from '../api/api.js';
3+
import api, { isUnauthorized } from '../api/api.js';
44
import Loading from '../util/Loading.js';
55
import MemberList from './MemberList.js';
66
import styled from 'react-emotion';
@@ -54,7 +54,7 @@ class DeploymentDetails extends Component {
5454
loading: false,
5555
error: e.message
5656
});
57-
if (IsUnauthorized(e)) {
57+
if (isUnauthorized(e)) {
5858
this.props.doLogout();
5959
return;
6060
}

dashboard/src/deployment/DeploymentList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Icon, Loader, Popup, Table } from 'semantic-ui-react';
22
import { Link } from "react-router-dom";
3-
import api, { IsUnauthorized } from '../api/api.js';
3+
import api, { isUnauthorized } from '../api/api.js';
44
import CommandInstruction from '../util/CommandInstruction.js';
55
import Loading from '../util/Loading.js';
66
import React, { Component } from 'react';
@@ -173,7 +173,7 @@ class DeploymentList extends Component {
173173
});
174174
} catch (e) {
175175
this.setState({error: e.message, loading: false});
176-
if (IsUnauthorized(e)) {
176+
if (isUnauthorized(e)) {
177177
this.props.doLogout();
178178
return;
179179
}

dashboard/src/storage/StorageList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Accordion, Header, Icon, Loader, Popup, Table } from 'semantic-ui-react';
2-
import api, { IsUnauthorized } from '../api/api.js';
2+
import api, { isUnauthorized } from '../api/api.js';
33
import CommandInstruction from '../util/CommandInstruction.js';
44
import VolumeList from './VolumeList.js';
55
import Loading from '../util/Loading.js';
@@ -185,7 +185,7 @@ class StorageList extends Component {
185185
error: e.message,
186186
loading: false
187187
});
188-
if (IsUnauthorized(e)) {
188+
if (isUnauthorized(e)) {
189189
this.props.doLogout();
190190
return;
191191
}

dashboard/src/storage/VolumeList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Icon, Loader, Popup, Table } from 'semantic-ui-react';
2-
import api, { IsUnauthorized } from '../api/api.js';
2+
import api, { isUnauthorized } from '../api/api.js';
33
import CommandInstruction from '../util/CommandInstruction.js';
44
import Loading from '../util/Loading.js';
55
import React, { Component } from 'react';
@@ -138,7 +138,7 @@ class VolumeList extends Component {
138138
error: e.message,
139139
loading: false
140140
});
141-
if (IsUnauthorized(e)) {
141+
if (isUnauthorized(e)) {
142142
this.props.doLogout();
143143
return;
144144
}

0 commit comments

Comments
 (0)