Skip to content

Commit

Permalink
fix: small refactor[WTEL-4883](https://webitel.atlassian.net/browse/W…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lera24 committed Nov 20, 2024
1 parent 93c7163 commit f9467f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</header>
<div class="opened-card-input-grid">
<wt-input
:disabled="disableUserInput"
:label="t('reusable.name')"
:value="itemInstance.name"
:v="v.itemInstance.name"
Expand All @@ -16,7 +15,6 @@
/>

<wt-select
:disabled="disableUserInput"
:label="t('lookups.slas.calendar')"
:search-method="loadCalendarsList"
:v="v.itemInstance.calendar"
Expand All @@ -26,15 +24,13 @@
/>

<wt-textarea
:disabled="disableUserInput"
:label="t('vocabulary.description')"
:value="itemInstance.description"
@input="setItemProp({ path: 'description', value: $event })"
/>

<div>
<wt-timepicker
:disabled="disableUserInput"
:label="t('lookups.slas.reactionTime')"
:v="v.itemInstance.reactionTime"
:value="itemInstance.reactionTime"
Expand All @@ -43,7 +39,6 @@
/>

<wt-timepicker
:disabled="disableUserInput"
:label="t('lookups.slas.resolutionTime')"
:v="v.itemInstance.resolutionTime"
:value="itemInstance.resolutionTime"
Expand All @@ -54,15 +49,13 @@

<div class="opened-sla-general__wrapper">
<wt-datepicker
:disabled="disableUserInput"
:label="t('lookups.slas.validFrom')"
:value="itemInstance.validFrom"
mode="datetime"
@input="setItemProp({ prop: 'validFrom', value: $event })"
/>

<wt-datepicker
:disabled="disableUserInput"
:label="t('lookups.slas.validTo')"
:value="itemInstance.validTo"
mode="datetime"
Expand All @@ -76,7 +69,6 @@
<script setup>
import { useCardStore } from '@webitel/ui-sdk/store';
import { useI18n } from 'vue-i18n';
import { useAccessControl } from '@webitel/ui-sdk/src/composables/useAccessControl/useAccessControl.js';
import CalendarsAPI from '@webitel/ui-sdk/src/api/clients/calendars/calendars.js';
const props = defineProps({
Expand All @@ -92,8 +84,6 @@ const props = defineProps({
const { t } = useI18n();
const { disableUserInput } = useAccessControl();
const { itemInstance, setItemProp } = useCardStore(props.namespace);
function loadCalendarsList(search) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>
<template #header>
<wt-page-header
:hide-primary="!hasSaveActionAccess"
:hide-primary="!hasSaveActionAccess || currentTab === 'conditions'"
:primary-action="save"
:primary-disabled="disabledSave"
:primary-text="saveText"
Expand Down Expand Up @@ -126,7 +126,7 @@ const path = computed(() => {
{ name: t('crm') },
{ name: t('startPage.configuration.name'), route: '/configuration' },
{ name: t('lookups.lookups'), route: '/configuration' },
{ name: t('lookups.slas.slas', 2), route: '/slas' },
{ name: t('lookups.slas.slas', 2), route: '/lookups/slas' },
{
name: isNew.value ? t('reusable.new') : pathName.value,
route: {
Expand Down

0 comments on commit f9467f0

Please sign in to comment.