Skip to content

Commit

Permalink
Merge pull request #1377 from lowcoder-org/fix/app_type
Browse files Browse the repository at this point in the history
Modify app constant names to match frontend
  • Loading branch information
FalkWolsky authored Dec 5, 2024
2 parents 18e2917 + 8e2b1be commit ac6aa91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@

@Getter
public enum ApplicationType {
ALL(0),
APPLICATION(1),
MODULE(2),
COMPOUND_APPLICATION(3),
FOLDER(4);
NAV_LAYOUT(3),
FOLDER(4),
MOBILE_TAB_LAYOUT(6),
NAVIGATION(7),
BUNDLE(8);

private final int value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public Mono<ApplicationView> getPublishedApplication(String applicationId, Appli
.build();
})
.delayUntil(applicationView -> {
if (applicationView.getApplicationInfoView().getApplicationType() == ApplicationType.COMPOUND_APPLICATION.getValue()) {
if (applicationView.getApplicationInfoView().getApplicationType() == ApplicationType.NAV_LAYOUT.getValue()) {
return compoundApplicationDslFilter.removeSubAppsFromCompoundDsl(applicationView.getApplicationDSL());
}
return Mono.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public Flux<ApplicationInfoView> getAllAuthorisedApplications4CurrentOrgMember(@
}
return applicationService.findByOrganizationIdWithoutDsl(currentOrgId);
})
.filter(application -> (isNull(applicationType) || application.getApplicationType() == applicationType.getValue())
.filter(application -> (isNull(applicationType) || applicationType == ApplicationType.ALL || application.getApplicationType() == applicationType.getValue())
&& (isNull(applicationStatus) || application.getApplicationStatus() == applicationStatus)
&& (isNull(name) || StringUtils.containsIgnoreCase(application.getName(), name))
&& (isNull(category) || StringUtils.containsIgnoreCase(application.getCategory(), category)))
Expand Down

0 comments on commit ac6aa91

Please sign in to comment.