mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Increase initial limit value of apps to 30 in APPM Store
This commit is contained in:
parent
5139415995
commit
b391dd8cf9
@ -24,7 +24,7 @@ import {withConfigContext} from "../../context/ConfigContext";
|
|||||||
import {handleApiError} from "../../js/Utils";
|
import {handleApiError} from "../../js/Utils";
|
||||||
import InfiniteScroll from "react-infinite-scroller";
|
import InfiniteScroll from "react-infinite-scroller";
|
||||||
|
|
||||||
const limit = 10;
|
const limit = 30;
|
||||||
|
|
||||||
class AppList extends React.Component {
|
class AppList extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@ -44,7 +44,7 @@ class AppList extends React.Component {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const {deviceType} = this.props;
|
const {deviceType} = this.props;
|
||||||
this.props.changeSelectedMenuItem(deviceType);
|
this.props.changeSelectedMenuItem(deviceType);
|
||||||
this.fetchData(0, limit, res => {
|
this.fetchData(0, 30, res => {
|
||||||
this.setState({
|
this.setState({
|
||||||
apps: res,
|
apps: res,
|
||||||
loading: false
|
loading: false
|
||||||
@ -57,7 +57,7 @@ class AppList extends React.Component {
|
|||||||
if (prevProps.deviceType !== this.props.deviceType) {
|
if (prevProps.deviceType !== this.props.deviceType) {
|
||||||
const {deviceType} = this.props;
|
const {deviceType} = this.props;
|
||||||
this.props.changeSelectedMenuItem(deviceType);
|
this.props.changeSelectedMenuItem(deviceType);
|
||||||
this.fetchData(0, limit, res => {
|
this.fetchData(0, 30, res => {
|
||||||
this.setState({
|
this.setState({
|
||||||
apps: res,
|
apps: res,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user