diff options
Diffstat (limited to 'frontend/app/views/tile/forms')
| -rw-r--r-- | frontend/app/views/tile/forms/tile.constants.js | 1 | ||||
| -rw-r--r-- | frontend/app/views/tile/forms/tile.form.hyperlink.js | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/frontend/app/views/tile/forms/tile.constants.js b/frontend/app/views/tile/forms/tile.constants.js index f2dd0ad..d7dea31 100644 --- a/frontend/app/views/tile/forms/tile.constants.js +++ b/frontend/app/views/tile/forms/tile.constants.js @@ -58,6 +58,7 @@ export const CURSORS = [ { name: 'hand_left', label: 'Left', }, { name: 'hand_right', label: 'Right', }, { name: 'unclickable', label: 'Unclickable', }, + { name: 'custom', label: 'Custom', } ] export const MARQUEE_DIRECTIONS = [ diff --git a/frontend/app/views/tile/forms/tile.form.hyperlink.js b/frontend/app/views/tile/forms/tile.form.hyperlink.js index c444748..4d3e0b5 100644 --- a/frontend/app/views/tile/forms/tile.form.hyperlink.js +++ b/frontend/app/views/tile/forms/tile.form.hyperlink.js @@ -11,12 +11,18 @@ import { NO_POPUP, OPEN_POPUP_LINK, CLOSE_POPUP_LINK } from './tile.constants' -export default function TileHyperlinkForm({ tile, pageList, popupList, parent }) { +export default function TileHyperlinkForm({ tile, pageList, popupList, cursors, parent }) { const isExternalLink = tile.target_page_id === EXTERNAL_LINK // const isPopupLink = ( // tile.target_page_id === OPEN_POPUP_LINK || // tile.target_page_id === CLOSE_POPUP_LINK // ) + let cursor + console.log(tile.settings.cursor, tile.settings.custom_cursor_id) + if (tile.settings.cursor === 'custom' && tile.settings.custom_cursor_id) { + cursor = cursors[tile.settings.custom_cursor_id] + console.log(cursor) + } return ( <div> <div className={'row selects'}> @@ -36,6 +42,9 @@ export default function TileHyperlinkForm({ tile, pageList, popupList, parent }) onChange={parent.handleSettingsSelect} /> </div> + {cursor && ( + <img src={cursor.url} className="sampleCursor" /> + )} {isExternalLink && ( <div> <TextInput |
