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>
|
||||||
<adf-about-panel *ngIf="dev" [label]="'ABOUT.SERVER_SETTINGS.TITLE' | translate">
|
<adf-about-panel *ngIf="dev" [label]="'ABOUT.SERVER_SETTINGS.TITLE' | translate">
|
||||||
<ng-template>
|
<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 { AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';
|
||||||
import { DiscoveryApiService } from '@alfresco/adf-content-services';
|
import { DiscoveryApiService } from '@alfresco/adf-content-services';
|
||||||
import { PACKAGE_JSON } from './package-json.token';
|
import { PACKAGE_JSON } from './package-json.token';
|
||||||
import { AppService } from '@alfresco/aca-shared';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-about-page',
|
selector: 'app-about-page',
|
||||||
templateUrl: './about.component.html',
|
templateUrl: './about.component.html'
|
||||||
styleUrls: ['./about.component.scss']
|
|
||||||
})
|
})
|
||||||
export class AboutComponent implements OnInit {
|
export class AboutComponent implements OnInit {
|
||||||
pkg: any;
|
pkg: any;
|
||||||
dev = false;
|
dev = false;
|
||||||
extensions$: Observable<ExtensionRef[]>;
|
extensions$: Observable<ExtensionRef[]>;
|
||||||
repository: RepositoryInfo = null;
|
repository: RepositoryInfo = null;
|
||||||
hideSidenav: boolean;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(DEV_MODE_TOKEN) devMode,
|
@Inject(DEV_MODE_TOKEN) devMode,
|
||||||
@@ -51,8 +48,7 @@ export class AboutComponent implements OnInit {
|
|||||||
public packageJson,
|
public packageJson,
|
||||||
private authService: AuthenticationService,
|
private authService: AuthenticationService,
|
||||||
private appExtensions: AppExtensionService,
|
private appExtensions: AppExtensionService,
|
||||||
private discovery: DiscoveryApiService,
|
private discovery: DiscoveryApiService
|
||||||
private appServices: AppService
|
|
||||||
) {
|
) {
|
||||||
this.dev = !devMode;
|
this.dev = !devMode;
|
||||||
this.extensions$ = this.appExtensions.references$;
|
this.extensions$ = this.appExtensions.references$;
|
||||||
@@ -62,7 +58,6 @@ export class AboutComponent implements OnInit {
|
|||||||
if (this.authService.isEcmLoggedIn()) {
|
if (this.authService.isEcmLoggedIn()) {
|
||||||
this.setECMInfo();
|
this.setECMInfo();
|
||||||
}
|
}
|
||||||
this.appServices.cast.subscribe((data) => (this.hideSidenav = data));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setECMInfo() {
|
setECMInfo() {
|
||||||
|
Reference in New Issue
Block a user