mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 08:28:35 +00:00
Merge pull request #13051 from ToolJet/fix/hide-modules-tab
[fix]: Hide the modules tab on the editor
This commit is contained in:
commit
3a798744be
14 changed files with 40 additions and 11 deletions
2
.version
2
.version
|
|
@ -1 +1 @@
|
|||
3.15.0
|
||||
3.15.1
|
||||
|
|
|
|||
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
|
|
@ -24,7 +24,5 @@
|
|||
"url": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json"
|
||||
}
|
||||
],
|
||||
"CodeGPT.apiKey": "CodeGPT Plus Beta",
|
||||
"workbench.colorTheme": "Cursor Dark",
|
||||
"workbench.iconTheme": "vs-seti"
|
||||
"CodeGPT.apiKey": "CodeGPT Plus Beta"
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
3.15.0
|
||||
3.15.1
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 1e9e019c9e9045c62ce3045c0e979c933add717b
|
||||
Subproject commit fcefb9417ea42d07e86236e12c3e6cb5160fe7c6
|
||||
|
|
@ -15,7 +15,6 @@ export const ComponentModuleTab = ({ onChangeTab }) => {
|
|||
<button
|
||||
className={`tj-drawer-tabs-btn tj-text-xsm ${activeTab == 1 && 'tj-drawer-tabs-btn-active'}`}
|
||||
onClick={() => handleChangeTab(1)}
|
||||
data-cy="button-invite-with-email"
|
||||
>
|
||||
<span>Components</span>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import Fuse from 'fuse.js';
|
|||
import { SearchBox } from '@/_components';
|
||||
import { DragLayer } from './DragLayer';
|
||||
import useStore from '@/AppBuilder/_stores/store';
|
||||
import ComponentModuleTab from './ComponentModuleTab';
|
||||
import { ModuleManager } from '@/modules/Modules/components';
|
||||
import { ComponentModuleTab } from '@/modules/Appbuilder/components';
|
||||
|
||||
// TODO: Hardcode all the component-section mapping in a constant file and just loop over it
|
||||
// TODO: styling
|
||||
|
|
|
|||
|
|
@ -1563,7 +1563,10 @@ class HomePageComponent extends React.Component {
|
|||
) : (
|
||||
<p className="empty-title mt-3">
|
||||
You have not created any modules.
|
||||
<a onClick={this.openCreateAppModal} className="text-bold">
|
||||
<a
|
||||
onClick={this.openCreateAppModal}
|
||||
className={`text-bold ${this.props.appType === 'module' && invalidLicense ? 'disabled' : ''}`}
|
||||
>
|
||||
Create a module
|
||||
</a>
|
||||
to start using it within your apps.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
import React from 'react';
|
||||
import { withEditionSpecificComponent } from '@/modules/common/helpers';
|
||||
import BaseComponentModuleTab from '@/modules/common/components/BaseComponentModuleTab';
|
||||
|
||||
const ComponentModuleTab = (props) => {
|
||||
return <BaseComponentModuleTab {...props} />;
|
||||
};
|
||||
|
||||
export default withEditionSpecificComponent(ComponentModuleTab, 'Appbuilder');
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { default } from './ComponentModuleTab';
|
||||
|
|
@ -4,5 +4,14 @@ import LogoNavDropdown from './LogoNavDropdown';
|
|||
import AppEnvironments from './AppEnvironments';
|
||||
import ThemeSelect from './ThemeSelect';
|
||||
import ColorSwatches from './ColorSwatches';
|
||||
import ComponentModuleTab from './ComponentModuleTab';
|
||||
|
||||
export { CreateVersionModal, PromoteReleaseButton, LogoNavDropdown, AppEnvironments, ThemeSelect, ColorSwatches };
|
||||
export {
|
||||
CreateVersionModal,
|
||||
PromoteReleaseButton,
|
||||
LogoNavDropdown,
|
||||
AppEnvironments,
|
||||
ThemeSelect,
|
||||
ColorSwatches,
|
||||
ComponentModuleTab,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
const BaseComponentModuleTab = () => {
|
||||
return <p className="widgets-manager-header">Components</p>;
|
||||
};
|
||||
|
||||
export default BaseComponentModuleTab;
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { default } from './BaseComponentModuleTab';
|
||||
|
|
@ -26,6 +26,7 @@ import BaseOnboardingQuestions from './BaseOnboardingQuestions';
|
|||
import BaseSetupAdminPage from './BaseSetupAdminPage';
|
||||
import UsersTable from './UsersTable';
|
||||
import BaseColorSwatches from './BaseColorSwatches';
|
||||
import BaseComponentModuleTab from './BaseComponentModuleTab';
|
||||
|
||||
export {
|
||||
FormTextInput,
|
||||
|
|
@ -56,4 +57,5 @@ export {
|
|||
BaseOnboardingQuestions,
|
||||
BaseSetupAdminPage,
|
||||
UsersTable,
|
||||
BaseComponentModuleTab,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.15.0
|
||||
3.15.1
|
||||
|
|
|
|||
Loading…
Reference in a new issue