remove monitoring from files that are not image

This commit is contained in:
smanylov
2026-03-09 14:38:52 +07:00
parent 1280505297
commit 0c03bb9254
4 changed files with 21 additions and 7 deletions
@@ -406,10 +406,22 @@ export default function TanstakFilesTable({ fileType }: { fileType: string }) {
cell: ({ row }) => { cell: ({ row }) => {
return ( return (
<div className="text-center font-semibold table-item"> <div className="text-center font-semibold table-item">
{row.original.fileType === 'image' ? (
<MonitoringDropDown file={row.original} /> <MonitoringDropDown file={row.original} />
) : (
<div>
{t('monitoring-is-not-supported')}
</div>
)}
</div> </div>
) )
}, },
/* sortingFn: (rowA, rowB) => {
console.log(rowA.original.monitoring, rowB.original.monitoring)
const monitoringA = rowA.original.monitoring;
const monitoringB = rowA.original.monitoring;
return monitoringA - monitoringB;
}, */
}, },
{ {
id: 'actions', id: 'actions',
+4 -4
View File
@@ -588,7 +588,7 @@
.tanstak-table-filtres { .tanstak-table-filtres {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
gap: 1rem; gap: 1rem;
@@ -597,9 +597,9 @@
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
@media (min-width: 768px) { @media (max-width: 975px) {
flex-direction: row; flex-direction: column;
align-items: center; align-items: start;
} }
.table-filtres-wrapper { .table-filtres-wrapper {
+2 -1
View File
@@ -292,7 +292,8 @@
"file-name": "File name", "file-name": "File name",
"there-are-not-enough-funds-to-protect-files": "There are not enough funds to protect files. {count} tokens required", "there-are-not-enough-funds-to-protect-files": "There are not enough funds to protect files. {count} tokens required",
"there-are-not-enough-funds-to-protect-file": "There are not enough funds to protect file. {count} tokens required", "there-are-not-enough-funds-to-protect-file": "There are not enough funds to protect file. {count} tokens required",
"duplicate-files": "Duplicate files" "duplicate-files": "Duplicate files",
"monitoring-is-not-supported": "Monitoring is not supported"
}, },
"Login-register-form": { "Login-register-form": {
"and": "and", "and": "and",
+2 -1
View File
@@ -292,7 +292,8 @@
"file-name": "Имя файла", "file-name": "Имя файла",
"there-are-not-enough-funds-to-protect-files": "Для защиты файлов недостаточно средств. Необходимо {count} токен(ов/а)", "there-are-not-enough-funds-to-protect-files": "Для защиты файлов недостаточно средств. Необходимо {count} токен(ов/а)",
"there-are-not-enough-funds-to-protect-file": "Для защиты файла недостаточно средств. Необходимо {count} токен(ов/а)", "there-are-not-enough-funds-to-protect-file": "Для защиты файла недостаточно средств. Необходимо {count} токен(ов/а)",
"duplicate-files": "Дубликаты файлов" "duplicate-files": "Дубликаты файлов",
"monitoring-is-not-supported": "Мониторинг не поддерживается"
}, },
"Login-register-form": { "Login-register-form": {
"and": "и", "and": "и",