feat: add customizable text for manager contact button
- Add text_manager_button field to TextsDTO with getter method - Update SettingsSerializerService to validate and deserialize new field - Add text_manager_button field to admin settings store - Add input field in admin TextsView for configuring button text - Update SPA SettingsStore with default value including emoji - Replace hardcoded button text in Product.vue with configurable text - Remove SVG icon from manager button to allow emoji usage - Add default value with emoji to app.php configuration - Button text now customizable via admin panel Texts tab
This commit is contained in:
@@ -57,6 +57,7 @@ export const useSettingsStore = defineStore('settings', {
|
||||
start_button: {
|
||||
text: '',
|
||||
},
|
||||
text_manager_button: '',
|
||||
},
|
||||
|
||||
sliders: {
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
<ItemInput label="Текст кнопки приветственного сообщения" v-model="settings.items.texts.start_button.text">
|
||||
Текст на кнопке приветственного сообщения, которая открывает магазин.
|
||||
</ItemInput>
|
||||
|
||||
<ItemInput label="Текст кнопки связи с менеджером" v-model="settings.items.texts.text_manager_button" placeholder="Связаться с менеджером">
|
||||
Текст на кнопке для связи с менеджером на странице товара. Используется только при выборе режима "Кнопка связи с менеджером" в настройках витрины.
|
||||
</ItemInput>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
Reference in New Issue
Block a user