diff --git a/src/api/common.js b/src/api/common.js index 25706ff4..d1b00b45 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -6,7 +6,7 @@ import { } from './utils'; export const LIST_DEFAULT_PAGE = 1; -export const LIST_DEFAULT_ROWS = 3; +export const LIST_DEFAULT_ROWS = 25; export const LIST_ALL_ROWS = 1000; const PATCH_HEADERS = { diff --git a/src/components/pages/PbxConfiguration/CscPbxMsConfigs.vue b/src/components/pages/PbxConfiguration/CscPbxMsConfigs.vue index f5a2eb77..c17593ed 100644 --- a/src/components/pages/PbxConfiguration/CscPbxMsConfigs.vue +++ b/src/components/pages/PbxConfiguration/CscPbxMsConfigs.vue @@ -80,14 +80,14 @@ mapGetters, mapMutations } from 'vuex' - // import { - // CreationState, - // RequestState - // } from "../../../store/common" - // import { - // showGlobalError, - // showToast - // } from '../../../helpers/ui' + import { + CreationState, + RequestState + } from "../../../store/common" + import { + showGlobalError, + showToast + } from '../../../helpers/ui' import { QField, QInput, @@ -207,32 +207,32 @@ } }, watch: { - // msConfigCreationState(state) { - // if(state === CreationState.created) { - // this.$scrollTo(this.$parent.$el); - // showToast(this.getMsConfigCreationToastMessage); - // } - // else if(state === CreationState.error) { - // showGlobalError(this.msConfigCreationError); - // } - // }, - // msConfigUpdateState(state) { - // if(state === RequestState.succeeded) { - // showToast(this.getMsConfigUpdateToastMessage); - // } - // else if(state === RequestState.failed) { - // showGlobalError(this.msConfigUpdateError); - // } - // }, - // msConfigRemovalState(state) { - // if(state === RequestState.succeeded) { - // this.$scrollTo(this.$parent.$el); - // showToast(this.getMsConfigRemovalToastMessage); - // } - // else if(state === RequestState.failed) { - // showGlobalError(this.msConfigRemovalError); - // } - // } + msConfigCreationState(state) { + if(state === CreationState.created) { + this.$scrollTo(this.$parent.$el); + showToast(this.getMsConfigCreationToastMessage); + } + else if(state === CreationState.error) { + showGlobalError(this.msConfigCreationError); + } + }, + msConfigUpdateState(state) { + if(state === RequestState.succeeded) { + showToast(this.getMsConfigUpdateToastMessage); + } + else if(state === RequestState.failed) { + showGlobalError(this.msConfigUpdateError); + } + }, + msConfigRemovalState(state) { + if(state === RequestState.succeeded) { + this.$scrollTo(this.$parent.$el); + showToast(this.getMsConfigRemovalToastMessage); + } + else if(state === RequestState.failed) { + showGlobalError(this.msConfigRemovalError); + } + } } } diff --git a/src/locales/en.json b/src/locales/en.json index bb4cd9d6..31f83157 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -495,7 +495,10 @@ "msConfigNumbersLabel": "Secretary numbers", "msConfigNoSecretaryNumbers": "No numbers assigned", "msConfigRemovalDialogTitle": "Remove manager secretary config", - "msConfigRemovalDialogText": "You are about to remove config for {msConfig}" + "msConfigRemovalDialogText": "You are about to remove config for {msConfig}", + "msConfigCreationToast": "Created manager secretary config for {msConfig} successfully", + "msConfigUpdateToast": "Updated {field} for manager secretary config {msConfig} successfully", + "msConfigRemovalToast": "Removed manager secretary config for {msConfig} successfully" }, "callBlocking": { "privacyEnabledToast": "Your number is hidden to the callee",