Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: support to display facilityName or facilityId in the header of store view screen(#440) #493

Merged
merged 3 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improved: support to display facilityName or facilityId in the header…
… of store view screen(#440)
ymaheshwari1 committed Nov 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1da8a3ab002316b6d0107d201c7b75c7cfa76782
2 changes: 1 addition & 1 deletion src/views/Count.vue
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<ion-page>
<ion-header>
<ion-toolbar>
<ion-title slot="start">{{ currentFacility?.facilityName || translate("Count name") }}</ion-title>
<ion-title slot="start">{{ currentFacility?.facilityName || currentFacility?.facilityId }}</ion-title>
<ion-segment :value="selectedSegment" @ionChange="segmentChanged($event.detail.value)">
<ion-segment-button value="assigned" @click="selectedSegment = 'assigned'">
<ion-label>{{ translate("Assigned") }}</ion-label>

Unchanged files with check annotations Beta

import OfflineHelper from "@/offline-helper"
import emitter from "@/event-bus"
import store from "@/store";
import { StatusCodes } from "http-status-codes";

Check warning on line 6 in src/api/index.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'StatusCodes' is defined but never used

Check warning on line 6 in src/api/index.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'StatusCodes' is defined but never used
axios.interceptors.request.use((config: any) => {
// TODO: pass csrf token
setTimeout(() => emitter.emit("dismissLoader"), 100);
if (error.response) {
// TODO Handle case for failed queue request
const { status } = error.response;

Check warning on line 46 in src/api/index.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'status' is assigned a value but never used

Check warning on line 46 in src/api/index.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'status' is assigned a value but never used
// if (status === StatusCodes.UNAUTHORIZED) {
// store.dispatch("user/logout");
// const redirectUrl = window.location.origin + '/login';
modalController
} from '@ionic/vue';
import { close, save, saveOutline } from "ionicons/icons";

Check warning on line 67 in src/components/CreateMappingModal.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'save' is defined but never used

Check warning on line 67 in src/components/CreateMappingModal.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'save' is defined but never used
import { computed, defineProps, onMounted, ref } from "vue";
import { useStore } from "vuex";
import { showToast } from '@/utils';
let mappingName = ref(null)
let fieldMapping = ref ({})
let fileColumns = ref([])
let identificationTypeId = ref('SKU')

Check warning on line 81 in src/components/CreateMappingModal.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'identificationTypeId' is assigned a value but never used

Check warning on line 81 in src/components/CreateMappingModal.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'identificationTypeId' is assigned a value but never used
const fields = process.env["VUE_APP_MAPPING_INVCOUNT"] ? JSON.parse(process.env["VUE_APP_MAPPING_INVCOUNT"]) : {}
onMounted(() => {
const cycleCountStats = computed(() => (id: string) => store.getters["count/getCycleCountStats"](id))
const facilities = computed(() => store.getters["user/getFacilities"])
const currentFacility = computed(() => store.getters["user/getCurrentFacility"])

Check warning on line 111 in src/components/DownloadClosedCountModal.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'currentFacility' is assigned a value but never used

Check warning on line 111 in src/components/DownloadClosedCountModal.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'currentFacility' is assigned a value but never used
const getProduct = computed(() => (id: string) => store.getters["product/getProduct"](id))
const query = computed(() => store.getters["count/getQuery"])
import { createStore, useStore as useVuexStore, Store } from "vuex";

Check warning on line 1 in src/store/index.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'Store' is defined but never used

Check warning on line 1 in src/store/index.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'Store' is defined but never used
import createPersistedState from "vuex-persistedstate";
import RootState from "./RootState"; // Ensure this is correctly imported
import mutations from "./mutations";
commit(types.COUNT_ITEMS_UPDATED, [])
},
async fetchCycleCountImportSystemMessages({commit} ,payload) {

Check warning on line 187 in src/store/modules/count/actions.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'payload' is defined but never used

Check warning on line 187 in src/store/modules/count/actions.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'payload' is defined but never used
let systemMessages;
try {
const fifteenMinutesEarlier = DateTime.now().minus({ minutes: 15 });
import ProductState from './ProductState'
import * as types from './mutation-types'
import { ProductService } from "@/services/ProductService"
import { hasError, showToast } from '@/utils';

Check warning on line 6 in src/store/modules/product/actions.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'showToast' is defined but never used

Check warning on line 6 in src/store/modules/product/actions.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'showToast' is defined but never used
import emitter from '@/event-bus';
import { translate } from '@/i18n';

Check warning on line 8 in src/store/modules/product/actions.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'translate' is defined but never used

Check warning on line 8 in src/store/modules/product/actions.ts

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'translate' is defined but never used
import logger from '@/logger'
const actions: ActionTree<ProductState, RootState> = {
import logger from "@/logger";
const store = useStore();
const router = useRouter()

Check warning on line 121 in src/views/BulkUpload.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (18.x)

'router' is assigned a value but never used

Check warning on line 121 in src/views/BulkUpload.vue

GitHub Actions / call-workflow-in-another-repo / reusable_workflow_job (20.x)

'router' is assigned a value but never used
const fieldMappings = computed(() => store.getters["user/getFieldMappings"])
const systemMessages = computed(() => store.getters["count/getCycleCountImportSystemMessages"])