mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
cleanup About component layout
This commit is contained in:
committed by
Sheena Malhotra
parent
69a8fbc9c5
commit
3d4daa1bee
@@ -1,4 +1,4 @@
|
||||
<aca-page-layout-content [scrollable]="true" [ngClass]="{'app-about-container' : hideSidenav === true}">
|
||||
<aca-page-layout-content [scrollable]="true">
|
||||
<adf-about>
|
||||
<adf-about-panel *ngIf="dev" [label]="'ABOUT.SERVER_SETTINGS.TITLE' | translate">
|
||||
<ng-template>
|
||||
|
@@ -1,14 +0,0 @@
|
||||
adf-about {
|
||||
padding: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-about-container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
}
|
@@ -30,19 +30,16 @@ import { AppExtensionService, ExtensionRef } from '@alfresco/adf-extensions';
|
||||
import { AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';
|
||||
import { DiscoveryApiService } from '@alfresco/adf-content-services';
|
||||
import { PACKAGE_JSON } from './package-json.token';
|
||||
import { AppService } from '@alfresco/aca-shared';
|
||||
|
||||
@Component({
|
||||
selector: 'app-about-page',
|
||||
templateUrl: './about.component.html',
|
||||
styleUrls: ['./about.component.scss']
|
||||
templateUrl: './about.component.html'
|
||||
})
|
||||
export class AboutComponent implements OnInit {
|
||||
pkg: any;
|
||||
dev = false;
|
||||
extensions$: Observable<ExtensionRef[]>;
|
||||
repository: RepositoryInfo = null;
|
||||
hideSidenav: boolean;
|
||||
|
||||
constructor(
|
||||
@Inject(DEV_MODE_TOKEN) devMode,
|
||||
@@ -51,8 +48,7 @@ export class AboutComponent implements OnInit {
|
||||
public packageJson,
|
||||
private authService: AuthenticationService,
|
||||
private appExtensions: AppExtensionService,
|
||||
private discovery: DiscoveryApiService,
|
||||
private appServices: AppService
|
||||
private discovery: DiscoveryApiService
|
||||
) {
|
||||
this.dev = !devMode;
|
||||
this.extensions$ = this.appExtensions.references$;
|
||||
@@ -62,7 +58,6 @@ export class AboutComponent implements OnInit {
|
||||
if (this.authService.isEcmLoggedIn()) {
|
||||
this.setECMInfo();
|
||||
}
|
||||
this.appServices.cast.subscribe((data) => (this.hideSidenav = data));
|
||||
}
|
||||
|
||||
setECMInfo() {
|
||||
|
Reference in New Issue
Block a user