diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-07-11 12:25:46 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-07-11 12:25:46 -0400 |
commit | 40465c791184762a491e63b6d403e4436b9e228a (patch) | |
tree | da1897b9895a916b68f0247c31b313e3caff50c5 /src | |
parent | 2a4c9c6405488a6b06e4255303c25a60184f2321 (diff) |
eacessss fuuu
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/search/SearchItem.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/search/SearchItem.tsx b/src/client/views/search/SearchItem.tsx index 20621565d..c5a75eee1 100644 --- a/src/client/views/search/SearchItem.tsx +++ b/src/client/views/search/SearchItem.tsx @@ -28,6 +28,7 @@ import { SelectionManager } from "../../util/SelectionManager"; import { ObjectField } from "../../../new_fields/ObjectField"; import { ContextMenu } from "../ContextMenu"; import { faFile } from '@fortawesome/free-solid-svg-icons'; +import { DocServer } from "../../DocServer"; export interface SearchItemProps { doc: Doc; @@ -230,7 +231,7 @@ export class SearchItem extends React.Component<SearchItemProps> { return docview; } if (this._previewDoc) { - //delete doc + DocServer.DeleteDocument(this._previewDoc[Id]); } let button = layoutresult.indexOf(DocTypes.PDF) !== -1 ? faFilePdf : layoutresult.indexOf(DocTypes.IMG) !== -1 ? faImage : |