TT#189650 Normalise item counts of all lists and set it to a value that fits all styles

Change-Id: Ic884ad99aee70d3f03da7c6d472043078ce35a75
pull/17/head
hherzog 3 years ago
parent 662f1db536
commit f81eb4da7d

@ -6,7 +6,7 @@ import {
} from './utils'
export const LIST_DEFAULT_PAGE = 1
export const LIST_DEFAULT_ROWS = 25
export const LIST_DEFAULT_ROWS = 24
export const LIST_ALL_ROWS = 1000
export const ContentType = {

@ -9,7 +9,7 @@ import {
getOutgoingCallBlocking
} from './call-blocking'
import {
getList
getList, LIST_DEFAULT_ROWS
} from './common'
export function getConversations (options) {
@ -24,7 +24,7 @@ export function getConversations (options) {
no_count: true,
tz: 'UTC',
page: _.get(options, 'page', 1),
rows: _.get(options, 'rows', 25)
rows: _.get(options, 'rows', LIST_DEFAULT_ROWS)
}
if (type !== null) {
params.type = type

@ -177,6 +177,7 @@ import CscAudioPlayer from 'components/CscAudioPlayer'
import CscPageSticky from 'components/CscPageSticky'
import CscCallRecordingFilters from 'components/pages/CallRecording/CscCallRecordingFilters'
import CscRemoveDialog from 'components/CscRemoveDialog'
import {LIST_DEFAULT_ROWS} from "src/api/common";
export default {
name: 'CscCallBlocking',
components: {
@ -235,7 +236,7 @@ export default {
sortBy: 'id',
descending: false,
page: 1,
rowsPerPage: 5,
rowsPerPage: LIST_DEFAULT_ROWS,
rowsNumber: 0
},
rowStatus: [],

@ -98,6 +98,7 @@ import { displayName } from 'src/filters/subscriber'
import CscPage from 'components/CscPage'
import CscPbxAutoAttendantSlotsTable from 'components/pages/PbxConfiguration/CscPbxAutoAttendantSlotsTable'
import CscPopupMenuItem from 'components/CscPopupMenuItem'
import {LIST_DEFAULT_ROWS} from "src/api/common";
export default {
name: 'CscPagePbxAutoAttendant',
components: {
@ -128,7 +129,7 @@ export default {
],
pagination: {
page: 1,
rowsPerPage: 5,
rowsPerPage: LIST_DEFAULT_ROWS,
rowsNumber: 0
}
}

@ -41,6 +41,7 @@ import { mapState } from 'vuex'
import CscPage from 'components/CscPage'
import { mapWaitingActions } from 'vue-wait'
import CscSpinner from 'components/CscSpinner'
import {LIST_DEFAULT_ROWS} from "src/api/common";
export default {
name: 'CscPageRegisteredDevices',
components: {
@ -54,7 +55,7 @@ export default {
sortBy: 'id',
descending: false,
page: 1,
rowsPerPage: 5,
rowsPerPage: LIST_DEFAULT_ROWS,
rowsNumber: 0
}
}

@ -15,8 +15,9 @@ import {
removeFromOutgoingListByNumber,
toggleNumberInBothLists
} from 'src/api/call-blocking'
import { LIST_DEFAULT_ROWS } from 'src/api/common'
export const ROWS_PER_PAGE = 15
export const ROWS_PER_PAGE = LIST_DEFAULT_ROWS
const ReloadConfig = {
retryLimit: 5,

@ -2,10 +2,11 @@
import {
RequestState
} from '../common'
import { LIST_DEFAULT_ROWS } from 'src/api/common'
export default {
page: 1,
rows: 10,
rows: LIST_DEFAULT_ROWS,
conversations: [],
downloadVoiceMailState: RequestState.button,
downloadVoiceMailError: null,

@ -8,6 +8,7 @@ import {
import {
getBrowserTimezone
} from '../helpers/date-helper'
import { LIST_DEFAULT_ROWS } from 'src/api/common'
export default {
namespaced: true,
@ -20,7 +21,7 @@ export default {
async getVoicemailsData (context) {
const res = await getAllCallsOrVoicemails({
subscriber_id: context.getters.getSubscriberId,
rows: 5,
rows: LIST_DEFAULT_ROWS,
order_by: 'timestamp',
order_by_direction: 'desc',
type: 'voicemail',
@ -31,7 +32,7 @@ export default {
async getCallsData (context) {
const res = await getAllCallsOrVoicemails({
subscriber_id: context.getters.getSubscriberId,
rows: 5,
rows: LIST_DEFAULT_ROWS,
order_by: 'timestamp',
order_by_direction: 'desc',
type: 'call',
@ -42,7 +43,7 @@ export default {
async getRegisteredDevicesData (context) {
const res = await getSubscriberRegistrations({
subscriber_id: context.getters.getSubscriberId,
rows: 5,
rows: LIST_DEFAULT_ROWS,
order_by: 'timestamp',
order_by_direction: 'desc',
tz: getBrowserTimezone()

Loading…
Cancel
Save