🐞 Removed icon, warning and restrictions for av scanning status (#753)
This commit is contained in:
@@ -8,8 +8,8 @@ import * as UUIDTools from "../../../utils/uuid";
|
|||||||
|
|
||||||
export const TYPE = "drive_files";
|
export const TYPE = "drive_files";
|
||||||
export type DriveScope = "personal" | "shared";
|
export type DriveScope = "personal" | "shared";
|
||||||
export type AVStatusSafe = "uploaded" | "safe";
|
export type AVStatusSafe = "uploaded" | "scanning" | "safe";
|
||||||
export type AVStatusUnsafe = "scanning" | "scan_failed" | "malicious" | "skipped";
|
export type AVStatusUnsafe = "scan_failed" | "malicious" | "skipped";
|
||||||
export type AVStatus = AVStatusSafe | AVStatusUnsafe;
|
export type AVStatus = AVStatusSafe | AVStatusUnsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -67,7 +67,9 @@ export const useOnBuildContextMenu = (
|
|||||||
const isPersonal = item?.scope === 'personal';
|
const isPersonal = item?.scope === 'personal';
|
||||||
const selectedCount = checked.length;
|
const selectedCount = checked.length;
|
||||||
const notSafe =
|
const notSafe =
|
||||||
!item?.is_directory && !['uploaded', 'safe'].includes(item?.av_status || '');
|
!item?.is_directory &&
|
||||||
|
(item?.av_status || '').length > 0 &&
|
||||||
|
!['uploaded', 'scanning', 'safe'].includes(item?.av_status || '');
|
||||||
|
|
||||||
let menu: any[] = [];
|
let menu: any[] = [];
|
||||||
|
|
||||||
|
|||||||
@@ -93,9 +93,6 @@ export const DocumentRow = ({
|
|||||||
{FeatureTogglesService.isActiveFeatureName(FeatureNames.COMPANY_AV_ENABLED) && (
|
{FeatureTogglesService.isActiveFeatureName(FeatureNames.COMPANY_AV_ENABLED) && (
|
||||||
<div className="shrink-0 ml-4 text-right lg:w-24 sm:w-20 ">
|
<div className="shrink-0 ml-4 text-right lg:w-24 sm:w-20 ">
|
||||||
<BaseSmall title={Languages.t(`scenes.app.drive.document_row.av_${item?.av_status}`)}>
|
<BaseSmall title={Languages.t(`scenes.app.drive.document_row.av_${item?.av_status}`)}>
|
||||||
{item?.av_status === 'scanning' && (
|
|
||||||
<ShieldExclamationIcon className="w-5 text-yellow-400" />
|
|
||||||
)}
|
|
||||||
{item?.av_status === 'malicious' && (
|
{item?.av_status === 'malicious' && (
|
||||||
<ShieldExclamationIcon className="w-5 text-rose-400" />
|
<ShieldExclamationIcon className="w-5 text-rose-400" />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user