diff --git a/package.json b/package.json
index 55d65ac0..e97c3e0d 100644
--- a/package.json
+++ b/package.json
@@ -77,5 +77,6 @@
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.1.5"
- }
+ },
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
diff --git a/src/containers/apps/Apps.tsx b/src/containers/apps/Apps.tsx
index facdcd68..601d6f0e 100644
--- a/src/containers/apps/Apps.tsx
+++ b/src/containers/apps/Apps.tsx
@@ -23,6 +23,7 @@ export default class Apps extends ApiComponent<
projects: ProjectDefinition[]
}
| undefined
+ showCreateAppForm: boolean
}
> {
constructor(props: any) {
@@ -30,6 +31,7 @@ export default class Apps extends ApiComponent<
this.state = {
isLoading: true,
apiData: undefined,
+ showCreateAppForm: false,
}
}
@@ -72,49 +74,59 @@ export default class Apps extends ApiComponent<
return
}
+ const showAppsTable: boolean =
+ apiData.apps.appDefinitions.length > 0 ||
+ apiData.projects.length > 0
+
+ const showCreateAppForm: boolean =
+ self.state.showCreateAppForm || !showAppsTable
+
return (
-
-
-
- {
- self.onCreateNewAppClicked(
- appName,
- projectId,
- hasPersistency
- )
+ {showCreateAppForm && (
+
+
+ {
- self.props.history.push('/apps/oneclick')
+ lg={{
+ span: 13,
}}
- />
-
-
-
- {(apiData.apps.appDefinitions.length > 0 ||
- apiData.projects.length > 0) && (
+ >
+ {
+ self.onCreateNewAppClicked(
+ appName,
+ projectId,
+ hasPersistency
+ )
+ }}
+ onOneClickAppClicked={() => {
+ self.props.history.push(
+ '/apps/oneclick'
+ )
+ }}
+ />
+
+
+
+ )}
+ {showAppsTable && (
{
+ self.setState({
+ showCreateAppForm:
+ !self.state.showCreateAppForm,
+ })
+ }}
/>
diff --git a/src/containers/apps/AppsTable.tsx b/src/containers/apps/AppsTable.tsx
index f8a4f06d..f0e754fb 100644
--- a/src/containers/apps/AppsTable.tsx
+++ b/src/containers/apps/AppsTable.tsx
@@ -63,6 +63,8 @@ class AppsTable extends Component<
defaultNginxConfig: string
isMobile: boolean
search: string | undefined
+ showCreateAppForm: boolean
+ onToggleCreateAppVisibility: () => void
},
{
searchTerm: string
@@ -328,7 +330,29 @@ class AppsTable extends Component<
return (
+
+
{self.state.isBulkEditMode && (