* migration from organization to workspace on code level * updated a few more files * fixed runtime errors * update org settings URL * Renamed organizationId in domain objects * changed field named from organization to workspace * Reverted AppsmithRole changes * fixed migrations * recreating indexes * migration update * seed data runs before migration, undo changes * mock commit * seedmongo to populate upgraded data, datasource upgrade * fixed two test cases * updated migrations * updated prop name * Upgraded AclPermission * comment * migrated AppsmithRole * more changes * final set of changes * variable name changes * update cypress variable name * Update app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ApplicationControllerCE.java * Update app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Datasource.java Co-authored-by: Trisha Anand <trisha@appsmith.com> * reverting encryption handler change * migrated a few missed out org to workspace * migrated a few missed out org to workspace * migration changes * Removed Permission import * fixed AppsmithRole * mongodb version update * fixed compile error * fixed compile issue * fixed some tests * simplified embedded mongodb config * updated a cypress test Co-authored-by: Sidhant Goel <sidhant@appsmith.com> Co-authored-by: Trisha Anand <trisha@appsmith.com> Co-authored-by: Sidhant Goel <sidhant@hexcod.in>
60 lines
1.3 KiB
TypeScript
60 lines
1.3 KiB
TypeScript
import styled from "styled-components";
|
|
import Button from "components/ads/Button";
|
|
import RadioComponent from "components/ads/Radio";
|
|
import { getTypographyByKey } from "constants/DefaultTheme";
|
|
import Dialog from "components/ads/DialogComponent";
|
|
import { Classes } from "@blueprintjs/core";
|
|
|
|
const TriggerButton = styled(Button)`
|
|
${(props) => getTypographyByKey(props, "btnLarge")}
|
|
height: 100%;
|
|
`;
|
|
|
|
const StyledDialog = styled(Dialog)`
|
|
&& .${Classes.DIALOG_BODY} {
|
|
padding-top: 0px;
|
|
}
|
|
`;
|
|
|
|
const StyledRadioComponent = styled(RadioComponent)`
|
|
label {
|
|
font-size: 16px;
|
|
margin-bottom: 32px;
|
|
}
|
|
`;
|
|
|
|
const ForkButton = styled(Button)<{ disabled?: boolean }>`
|
|
height: 38px;
|
|
width: 203px;
|
|
pointer-events: ${(props) => (!!props.disabled ? "none" : "auto")};
|
|
`;
|
|
|
|
const WorkspaceList = styled.div`
|
|
overflow: auto;
|
|
max-height: 250px;
|
|
margin-bottom: 10px;
|
|
margin-top: 20px;
|
|
`;
|
|
|
|
const ButtonWrapper = styled.div`
|
|
display: flex;
|
|
margin-top: ${(props) => props.theme.spaces[11]}px;
|
|
gap: ${(props) => props.theme.spaces[4]}px;
|
|
justify-content: flex-end;
|
|
`;
|
|
|
|
const SpinnerWrapper = styled.div`
|
|
display: flex;
|
|
justify-content: center;
|
|
`;
|
|
|
|
export {
|
|
TriggerButton,
|
|
StyledDialog,
|
|
StyledRadioComponent,
|
|
ForkButton,
|
|
WorkspaceList,
|
|
ButtonWrapper,
|
|
SpinnerWrapper,
|
|
};
|