summaryrefslogtreecommitdiff
path: root/frontend/app/views/tile/components/tile.list.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-20 19:24:13 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-20 19:24:13 +0100
commit50d5c3c2f10725af8ebb6db47c209f7000abc8f4 (patch)
tree3324d485ef7684189c50cfeb6e05ee0c7397601f /frontend/app/views/tile/components/tile.list.js
parentd9ee2c97882ea5ace9c28ac6560ffa240daf9345 (diff)
remove foreignkey constraint on target_page_id. toggle popups. show list of popups, if a tile link is open/close popup
Diffstat (limited to 'frontend/app/views/tile/components/tile.list.js')
-rw-r--r--frontend/app/views/tile/components/tile.list.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/app/views/tile/components/tile.list.js b/frontend/app/views/tile/components/tile.list.js
index 9ceb999..127ca52 100644
--- a/frontend/app/views/tile/components/tile.list.js
+++ b/frontend/app/views/tile/components/tile.list.js
@@ -114,6 +114,10 @@ const TileListLink = ({ tile, pageTitles }) => (
{'Link: '}
{tile.target_page_id === -1
? 'External'
+ : tile.target_page_id === -2
+ ? 'Open popup'
+ : tile.target_page_id === -3
+ ? 'Close popup'
: !tile.target_page_id
? 'No link specified!'
: tile.target_page_id in pageTitles