Browse Source
Merge pull request #2448 from Budibase/screen-modal-improvements
Prevent opening a screen modal if already inside a screen modal
gh-pages
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
packages/client/src/utils/buttonActions.js
|
|
|
@ -42,7 +42,9 @@ const triggerAutomationHandler = async action => { |
|
|
|
const navigationHandler = action => { |
|
|
|
const { url, peek } = action.parameters |
|
|
|
if (url) { |
|
|
|
if (peek) { |
|
|
|
// If we're already peeking, don't peek again
|
|
|
|
const isPeeking = get(routeStore).queryParams?.peek |
|
|
|
if (peek && !isPeeking) { |
|
|
|
peekStore.actions.showPeek(url) |
|
|
|
} else { |
|
|
|
const external = !url.startsWith("/") |
|
|
|
|