fix: service deploymentEnabled

This commit is contained in:
Andras Bacsai
2022-09-05 09:15:32 +02:00
parent 11d10bee12
commit 8600400632
3 changed files with 157 additions and 138 deletions

View File

@@ -56,6 +56,15 @@ export function checkIfDeploymentEnabledApplications(isAdmin: boolean, applicati
application.buildPack
);
}
export function checkIfDeploymentEnabledServices(isAdmin: boolean, service: any) {
return (
isAdmin &&
service.fqdn &&
service.destinationDocker &&
service.version &&
service.type
);
}
export const status: Writable<any> = writable({
application: {
isRunning: false,