From 3e3aa9d118c690dcf56a4c27521a8aa42cfe2e8c Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Tue, 2 Apr 2024 10:39:27 +0530 Subject: [PATCH] Removed: getAvailableTimeZone and setUserTimeZones from the UserService and made minor change in package.json file. --- package.json | 4 ++-- src/services/UserService.ts | 16 ---------------- src/views/Settings.vue | 1 - 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 89028874..b05d9eb5 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "@casl/ability": "^6.0.0", "@hotwax/app-version-info": "^1.0.0", "@hotwax/apps-theme": "^1.2.6", - "@hotwax/dxp-components": "1.13.0", - "@hotwax/oms-api": "1.14.0", + "@hotwax/dxp-components": "^1.13.0", + "@hotwax/oms-api": "^1.14.0", "@ionic/core": "^7.6.0", "@ionic/vue": "^7.6.0", "@ionic/vue-router": "^7.6.0", diff --git a/src/services/UserService.ts b/src/services/UserService.ts index c2310acf..b78c86d8 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -41,20 +41,6 @@ const checkPermission = async (payload: any): Promise => { }); } -const getAvailableTimeZones = async (): Promise => { - return api({ - url: "getAvailableTimeZones", - method: "get", - cache: true - }); -} -const setUserTimeZone = async (payload: any): Promise => { - return api({ - url: "setUserTimeZone", - method: "post", - data: payload - }); -} const getQOHViewConfig = async (token: any, productStoreId: any): Promise => { // If the productStoreId is not provided, it may be case of facility not associated with any productStore if (!productStoreId) { @@ -225,12 +211,10 @@ const getCurrentEComStore = async (token: any, facilityId: any): Promise => export const UserService = { login, - getAvailableTimeZones, getCurrentEComStore, getQOHViewConfig, getUserPermissions, getUserProfile, - setUserTimeZone, checkPermission, updateQOHViewConfig } \ No newline at end of file diff --git a/src/views/Settings.vue b/src/views/Settings.vue index b6ece321..9900c5f6 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -89,7 +89,6 @@ import { Actions, hasPermission } from '@/authorization' import { UserService } from '@/services/UserService' import { hasError, showToast } from '@/utils'; import { translate } from "@/i18n"; -// import { DxpTimeZoneSwitcher } from '@hotwax/dxp-components'; export default defineComponent({ name: 'Settings',