Skip to content

Commit

Permalink
fix(admin-ui): resolve all bugs displayed for admin-ui bug #308
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Nov 25, 2021
1 parent 45e4186 commit 194e158
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions plugins/admin/components/MonthlyActiveUsersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { useTranslation } from 'react-i18next'
import { connect } from 'react-redux'
import Picker from 'react-month-picker'
import PropTypes from 'prop-types'
import { Badge } from 'reactstrap'

class MonthBox extends Component {
static propTypes = {
Expand Down Expand Up @@ -256,9 +257,11 @@ function MonthlyActiveUsersPage({ stat, permissions, loading, dispatch }) {
{t('actions.view')}
</Button>
<Label className="h4">
{t('fields.average_of_mau')}
{arrAvg(Object.values(stat))}
{t('fields.average_of_mau')}&nbsp;&nbsp;&nbsp;
</Label>
<Badge className="h4" color="success">
{arrAvg(Object.values(stat))}
</Badge>
</div>
<ResponsiveContainer
className="mau-graph"
Expand Down Expand Up @@ -329,6 +332,7 @@ function MonthlyActiveUsersPage({ stat, permissions, loading, dispatch }) {
<div className="pretty p-default p-curve p-smooth">
<Input
type="checkbox"
readOnly={true}
checked={showAuthCodeATGraph}
onClick={(e) => {
setShowAuthCodeATGraph(!showAuthCodeATGraph)
Expand All @@ -342,6 +346,7 @@ function MonthlyActiveUsersPage({ stat, permissions, loading, dispatch }) {
<Input
type="checkbox"
checked={showClientCredentialATGraph}
readOnly={true}
onClick={(e) => {
setShowClientCredentialATGraph(
!showClientCredentialATGraph,
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth-server/components/Clients/ClientListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ClientListPage({ clients, permissions, scopes, loading, dispatch }) {
const myActions = []
const history = useHistory()
const pageSize = localStorage.getItem('paggingSize') || 10
const [limit, setLimit] = useState(500)
const [limit, setLimit] = useState(200)
const [pattern, setPattern] = useState(null)
const [item, setItem] = useState({})
const [modal, setModal] = useState(false)
Expand Down

0 comments on commit 194e158

Please sign in to comment.