feat: add annotation for action buttons and double click for user list page
This commit is contained in:
@@ -618,7 +618,7 @@ export const DevicesTable = observer(() => {
|
||||
e.stopPropagation();
|
||||
navigate(`/vehicle/${row.vehicle_id}/edit`);
|
||||
}}
|
||||
title="Редактировать транспорт"
|
||||
title="Редактировать"
|
||||
>
|
||||
<Pencil size={16} />
|
||||
</button>
|
||||
@@ -628,7 +628,7 @@ export const DevicesTable = observer(() => {
|
||||
e.stopPropagation();
|
||||
handleReloadStatus();
|
||||
}}
|
||||
title="Перезапросить статус"
|
||||
title="Обновить статус"
|
||||
disabled={
|
||||
!row.device_uuid || !devices.includes(row.device_uuid)
|
||||
}
|
||||
@@ -655,7 +655,7 @@ export const DevicesTable = observer(() => {
|
||||
setLogsModalOpen(true);
|
||||
}
|
||||
}}
|
||||
title="Логи устройства"
|
||||
title="Логи"
|
||||
>
|
||||
<ScrollText size={16} />
|
||||
</button>
|
||||
@@ -668,7 +668,7 @@ export const DevicesTable = observer(() => {
|
||||
setSessionsModalVehicleTailNumber(row.tail_number);
|
||||
setSessionsModalOpen(true);
|
||||
}}
|
||||
title="Сессии ТО"
|
||||
title="Сессии обслуживания"
|
||||
>
|
||||
<Wrench size={16} />
|
||||
</button>
|
||||
|
||||
@@ -87,12 +87,14 @@ export const SightsTable = observer(() => {
|
||||
<TableCell align="center" className="py-3">
|
||||
<div className="flex justify-center items-center gap-3">
|
||||
<button
|
||||
title="Редактировать"
|
||||
className="rounded-md px-3 py-1.5 transition-transform transform hover:scale-105"
|
||||
onClick={() => navigate(`/sight/${row?.id}`)}
|
||||
>
|
||||
<Pencil size={18} className="text-blue-500" />
|
||||
</button>
|
||||
<button
|
||||
title="Удалить"
|
||||
className="rounded-md px-3 py-1.5 transition-transform transform hover:scale-105"
|
||||
onClick={() => {
|
||||
setIsDeleteModalOpen(true);
|
||||
|
||||
Reference in New Issue
Block a user