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:
2025-12-25 20:43:12 +03:00
parent 551c4a3506
commit 0a7877ddbe
7 changed files with 24 additions and 8 deletions

View File

@@ -57,6 +57,7 @@ export const useSettingsStore = defineStore('settings', {
start_button: {
text: '',
},
text_manager_button: '',
},
sliders: {

View File

@@ -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>