-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from mittwald/chore/python-app-version
Hide version number of custom python apps
- Loading branch information
Showing
3 changed files
with
21 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { phpInstaller } from "../../commands/app/create/php.js"; | ||
import { nodeInstaller } from "../../commands/app/create/node.js"; | ||
import { pythonInstaller } from "../../commands/app/create/python.js"; | ||
|
||
/** | ||
* Tests if an app installation is for a custom app (for example, a custom PHP | ||
* or Node.js app). These are treated differently in the UI. | ||
* | ||
* @param appId | ||
*/ | ||
export function isCustomAppInstallation(appId: string): boolean { | ||
return [ | ||
phpInstaller.appId, | ||
nodeInstaller.appId, | ||
pythonInstaller.appId, | ||
].includes(appId); | ||
} |
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