File tree Expand file tree Collapse file tree
vueManager/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import DataTable from 'primevue/datatable'
88import Dialog from ' primevue/dialog'
99import IconField from ' primevue/iconfield'
1010import InputIcon from ' primevue/inputicon'
11- import InputNumber from ' primevue/inputnumber'
1211import InputText from ' primevue/inputtext'
1312import Select from ' primevue/select'
1413import Toast from ' primevue/toast'
@@ -108,11 +107,12 @@ async function saveCellEdit(event) {
108107 if (! editable .includes (field)) return
109108
110109 // Backend expects 'caption'/'description' for the per-link override (schema columns).
111- const serverField = field === ' category_caption'
112- ? ' caption'
113- : field === ' category_description'
114- ? ' description'
115- : field
110+ const serverField =
111+ field === ' category_caption'
112+ ? ' caption'
113+ : field === ' category_description'
114+ ? ' description'
115+ : field
116116
117117 try {
118118 await request .put (` /api/mgr/categories/${ props .categoryId } /options/${ newData .option_id } ` , {
@@ -378,7 +378,9 @@ onMounted(() => {
378378 <InputText
379379 v-model="data[field]"
380380 class="w-full"
381- :placeholder="_('ms3_category_option_caption_override_desc') || 'Пусто: берётся глобальное'"
381+ :placeholder="
382+ _('ms3_category_option_caption_override_desc') || 'Пусто: берётся глобальное'
383+ "
382384 autofocus
383385 @keyup.enter.stop
384386 />
Original file line number Diff line number Diff line change @@ -117,7 +117,11 @@ function hexWithHash(v) {
117117 : model- value= " hexWithoutHash(items[index]?.name)"
118118 format= " hex"
119119 class = " value-picker"
120- : pt= " { input: { class: !isValidHex(items[index]?.name) && items[index]?.name ? 'invalid' : '' } }"
120+ : pt= " {
121+ input: {
122+ class: !isValidHex(items[index]?.name) && items[index]?.name ? 'invalid' : '',
123+ },
124+ }"
121125 @update: model- value= " updateColor(index, 'name', hexWithHash($event))"
122126 / >
123127 < InputText
Original file line number Diff line number Diff line change @@ -316,7 +316,10 @@ function addSuggestion(s) {
316316 class = " w-full"
317317 separator= " ,"
318318 : add- on- blur= " true"
319- : placeholder= " _('ms3_combo_options_chips_placeholder') || 'Введите значение — Enter, запятая или клик вне поля добавят его'"
319+ : placeholder= "
320+ _('ms3_combo_options_chips_placeholder') ||
321+ 'Введите значение — Enter, запятая или клик вне поля добавят его'
322+ "
320323 @add= " onChange"
321324 @remove= " onChange"
322325 @keyup= " onComboOptionsKeyup"
You can’t perform that action at this time.
0 commit comments