Skip to content

Commit

Permalink
fix: small refactor after review[WTEL-4883](https://webitel.atlassian…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lera24 committed Dec 3, 2024
1 parent 1bcf0af commit 01bc9c4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vueuse/core": "^11.0.3",
"@webitel/ui-sdk": "^24.12.9",
"@webitel/ui-sdk": "^24.12.12",
"axios": "^1.7.7",
"deep-equal": "^2.2.1",
"dompurify": "^3.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:search-method="loadCalendarsList"
:value="itemInstance.calendar"
required
@input="setItemProp({ prop: 'calendar', value: $event })"
@input="setItemProp({ path: 'calendar', value: $event })"
/>

<wt-textarea
Expand All @@ -32,14 +32,14 @@
:label="t('lookups.slas.reactionTime')"
:value="itemInstance.reactionTime"
format='hh:mm'
@input="setItemProp({ prop: 'reactionTime', value: +$event })"
@input="setItemProp({ path: 'reactionTime', value: +$event })"
/>

<wt-timepicker
:label="t('lookups.slas.resolutionTime')"
:value="itemInstance.resolutionTime"
format='hh:mm'
@input="setItemProp({ prop: 'resolutionTime', value: +$event })"
@input="setItemProp({ path: 'resolutionTime', value: +$event })"
/>
</div>

Expand All @@ -48,14 +48,14 @@
:label="t('lookups.slas.validFrom')"
:value="itemInstance.validFrom"
mode="datetime"
@input="setItemProp({ prop: 'validFrom', value: $event })"
@input="setItemProp({ path: 'validFrom', value: $event })"
/>

<wt-datepicker
:label="t('lookups.slas.validTo')"
:value="itemInstance.validTo"
mode="datetime"
@input="setItemProp({ prop: 'validTo', value: $event })"
@input="setItemProp({ path: 'validTo', value: $event })"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
>
<template #header>
<wt-page-header
hide-primary
:secondary-action="close"
hide-primary
>
<wt-headline-nav :path="path" />
</wt-page-header>
Expand Down Expand Up @@ -105,6 +105,10 @@
</template>

<script setup>
import { computed, onUnmounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
import { useClose } from '@webitel/ui-sdk/src/composables/useClose/useClose.js';
import IconAction from '@webitel/ui-sdk/src/enums/IconAction/IconAction.enum.js';
import WtActionsBar from '@webitel/ui-sdk/src/components/wt-action-bar/wt-action-bar.vue';
Expand All @@ -120,10 +124,6 @@ import DeleteConfirmationPopup
from '@webitel/ui-sdk/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue';
import { useTableFilters } from '@webitel/ui-sdk/src/modules/Filters/composables/useTableFilters.js';
import { useTableStore } from '@webitel/ui-sdk/src/modules/TableStoreModule/composables/useTableStore.js';
import { computed, onUnmounted } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { useStore } from 'vuex';
import { useTableEmpty } from '@webitel/ui-sdk/src/modules/TableComponentModule/composables/useTableEmpty.js';
import filters from '../modules/filters/store/filters.js';
Expand Down
14 changes: 7 additions & 7 deletions src/modules/configuration/modules/lookups/store/lookups.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { createBaseStoreModule } from '@webitel/ui-sdk/src/store/new/index.js';
import slas from '../modules/slas/store/slas.js';

const modules = {
slas,
};
const lookups = createBaseStoreModule({
modules: {
slas,
},
});

export default {
namespaced: true,
modules,
};
export default lookups;
14 changes: 7 additions & 7 deletions src/modules/configuration/store/configuration.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { createBaseStoreModule } from '@webitel/ui-sdk/src/store/new/index.js';
import lookups from '../modules/lookups/store/lookups.js';

const modules = {
lookups,
};
const configuration = createBaseStoreModule({
modules: {
lookups,
},
});

export default {
namespaced: true,
modules,
};
export default configuration;

0 comments on commit 01bc9c4

Please sign in to comment.