chore: clean up texts

This commit is contained in:
2026-08-13 11:30:04 +07:00
parent 104cf71969
commit 1b78f2ba36
7 changed files with 111 additions and 5 deletions

View File

@@ -58,6 +58,8 @@ def edit_product(product: Product):
product_id = product.id
prefix = f"edit_product:{product_id}"
visibility_btn = "🙈 Скрыт" if product.is_hidden else "👁️ Видим"
photo_btn = "🗑️ Удалить фото" if product.file_id or product.img_path else "📷 Добавить фото"
photo_action = "delete_photo" if product.file_id or product.img_path else "photo"
return InlineKeyboardBuilder(
[
@@ -69,6 +71,7 @@ def edit_product(product: Product):
),
],
[InlineKeyboardButton(text="💸 Цена", callback_data=f"{prefix}:price")],
[InlineKeyboardButton(text=photo_btn, callback_data=f"{prefix}:{photo_action}")],
[
InlineKeyboardButton(text=visibility_btn, callback_data=f"{prefix}:hide"),
InlineKeyboardButton(text="❌", callback_data=f"{prefix}:delete"),