-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fix: render only the currently open detached widgets. (#33040)"
This reverts commit 16fce05.
- Loading branch information
Showing
13 changed files
with
76 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
app/client/src/layoutSystems/anvil/integrations/actions/detachedWidgetActions.ts
This file was deleted.
Oops, something went wrong.
15 changes: 13 additions & 2 deletions
15
app/client/src/layoutSystems/anvil/integrations/modalSelectors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
import type { AppState } from "@appsmith/reducers"; | ||
import { getWidgetIdsByType, getWidgetsMeta } from "sagas/selectors"; | ||
import { WDSModalWidget } from "widgets/wds/WDSModalWidget"; | ||
|
||
export const getCurrentlyOpenAnvilDetachedWidgets = (state: AppState) => { | ||
return state.ui.anvilDetachedWidgets.currentlyOpenDetachedWidgets; | ||
export const getCurrentlyOpenAnvilModal = (state: AppState) => { | ||
const allExistingModals = getWidgetIdsByType(state, WDSModalWidget.type); | ||
if (allExistingModals.length === 0) { | ||
return; | ||
} | ||
const metaWidgets = getWidgetsMeta(state); | ||
const currentlyOpenModal = allExistingModals.find((modalId) => { | ||
const modal = metaWidgets[modalId]; | ||
return modal && modal.isVisible; | ||
}); | ||
return currentlyOpenModal; | ||
}; |
36 changes: 0 additions & 36 deletions
36
app/client/src/layoutSystems/anvil/integrations/reducers/anvilDetachedWidgetsReducer.ts
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
app/client/src/layoutSystems/anvil/integrations/sagas/anvilDetachedWidgetSagas.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
app/client/src/layoutSystems/anvil/integrations/sagas/utils.ts
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
app/client/src/layoutSystems/anvil/viewer/canvas/AnvilDetachedWidgets.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters