Commit 3acc93d 1 parent 8faf473 commit 3acc93d Copy full SHA for 3acc93d
File tree 2 files changed +5
-3
lines changed
client/templates/angular/src/main/webapp/app/layouts/navbar
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 80
80
< / a>
81
81
< / li>
82
82
< % _ } _%>
83
+ <% _ if (withAdminUi){ _% >
83
84
< li>
84
85
< a class = " dropdown-item" routerLink= " admin/metrics" routerLinkActive= " active" (click)= " collapseNavbar()" >
85
86
< fa- icon icon= " tachometer-alt" [fixedWidth]= " true" >< / fa- icon>
110
111
< span jhiTranslate= " global.menu.admin.apidocs" > API < / span>
111
112
< / a>
112
113
< / li>
114
+ < % _ } _%>
113
115
<!-- jhipster-needle-add-element-to-admin-menu - JHipster will add entities to the admin menu here -->
114
116
<% _ if (devDatabaseType === ' h2Disk' || devDatabaseType === ' h2Memory' || devDatabaseType === ' couchbase' ) { _% >
115
117
< li * ngIf= " !inProduction" >
Original file line number Diff line number Diff line change @@ -2238,8 +2238,8 @@ module.exports = class JHipsterBaseGenerator extends PrivateBase {
2238
2238
if ( options . recreateInitialChangelog ) {
2239
2239
this . configOptions . recreateInitialChangelog = options . recreateInitialChangelog ;
2240
2240
}
2241
- if ( options . withAdminUi ) {
2242
- this . configOptions . withAdminUi = options . withAdminUi ;
2241
+ if ( options . withAdminUi !== undefined ) {
2242
+ this . jhipsterConfig . withAdminUi = options . withAdminUi ;
2243
2243
}
2244
2244
if ( options . skipClient ) {
2245
2245
this . skipClient = this . jhipsterConfig . skipClient = true ;
@@ -2328,7 +2328,6 @@ module.exports = class JHipsterBaseGenerator extends PrivateBase {
2328
2328
dest . experimental = config . experimental ;
2329
2329
dest . logo = config . logo ;
2330
2330
dest . backendName = config . backendName || 'Java' ;
2331
- dest . withAdminUi = config . withAdminUi ;
2332
2331
}
2333
2332
2334
2333
/**
@@ -2356,6 +2355,7 @@ module.exports = class JHipsterBaseGenerator extends PrivateBase {
2356
2355
dest . prettierJava = config . prettierJava ;
2357
2356
dest . pages = config . pages ;
2358
2357
dest . skipJhipsterDependencies = ! ! config . skipJhipsterDependencies ;
2358
+ dest . withAdminUi = config . withAdminUi ;
2359
2359
2360
2360
dest . testFrameworks = config . testFrameworks || [ ] ;
2361
2361
dest . gatlingTests = dest . testFrameworks . includes ( 'gatling' ) ;
You can’t perform that action at this time.
0 commit comments