diff --git a/src/common/model/obj/obj-pdf.dto.ts b/src/common/model/obj/obj-pdf.dto.ts index a5505d2..dfd5698 100644 --- a/src/common/model/obj/obj-pdf.dto.ts +++ b/src/common/model/obj/obj-pdf.dto.ts @@ -14,12 +14,14 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +import { ObjOverrideDto } from './obj-override.dto'; import { ObjUrlDto } from './obj.dto'; import { ObjHashtagable } from './obj-hashtag.dto'; export interface ObjPdfDto extends ObjHashtagable { hash: string; data: ObjPdfDataDto; + override?: ObjOverrideDto; } export interface ObjPdfDataDto { diff --git a/src/options-ui/components/board/board/board-item-title.tsx b/src/options-ui/components/board/board/board-item-title.tsx index be7dd91..b5eb228 100644 --- a/src/options-ui/components/board/board/board-item-title.tsx +++ b/src/options-ui/components/board/board/board-item-title.tsx @@ -45,6 +45,12 @@ export const BoardItemTitle: FunctionComponent = (props) => { ) : undefined; + const editIcon = [ObjTypeDto.PageSnapshot, ObjTypeDto.PageElementSnapshot].includes(props.obj.type) ? ( + props.editCallback()}> + + + ) : undefined; + return ( = (props) => { {htmlIcon} - props.editCallback()}> - - + {editIcon} props.removeCallback()}>