}
// Pass the readonlyFields param if available
- if (this.route.snapshot.data[0].readonlyFields) {
+ if (this.route.snapshot.data &&
+ this.route.snapshot.data.length &&
+ this.route.snapshot.data[0].readonlyFields) {
this.readonlyFields = this.route.snapshot.data[0].readonlyFields;
}
<span class="material-icons">person</span>
<span i18n>User Permission Editor</span>
</a>
- <!-- Angular version
<a class="dropdown-item"
routerLink="/staff/admin/server/splash">
<span class="material-icons">account_balance</span>
<span i18n>Server Administration</span>
</a>
- -->
- <a class="dropdown-item" href="/eg/staff/admin/server/index">
- <span class="material-icons">account_balance</span>
- <span i18n>Server Administration</span>
- </a>
<a class="dropdown-item" href="/eg/staff/admin/local/index">
<span class="material-icons">landscape</span>
<span i18n>Local Administration</span>
</a>
</li>
<li>
- <a href="./admin/server/index" target="_self">
+ <a href="/eg2/staff/admin/server/splash">
<span class="glyphicon glyphicon-briefcase"></span>
[% l('Server Administration') %]
</a>