mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-4429] Add readOnly breadcrumb to upload from device tab (#6664)
* [AAE-4429] Add readOnly breadcrumb to upload from device tab * [AAE-4429] Added unit tests * [AAE-4429] Moved unit tests * [AAE-4429] Removed breadcrumb title
This commit is contained in:
@@ -14,6 +14,16 @@
|
|||||||
color: mat-color($foreground, base, 0.87);
|
color: mat-color($foreground, base, 0.87);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.adf-toolbar .mat-toolbar {
|
||||||
|
max-height: 48px;
|
||||||
|
border-bottom-width: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
&.mat-toolbar-single-row {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.adf-content-node-selector {
|
.adf-content-node-selector {
|
||||||
|
|
||||||
&-search-panel-container {
|
&-search-panel-container {
|
||||||
@@ -62,16 +72,6 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-toolbar .mat-toolbar {
|
|
||||||
max-height: 48px;
|
|
||||||
border-bottom-width: 0;
|
|
||||||
font-size: 14px;
|
|
||||||
|
|
||||||
&.mat-toolbar-single-row {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&-breadcrumb {
|
&-breadcrumb {
|
||||||
.adf-dropdown-breadcrumb-trigger {
|
.adf-dropdown-breadcrumb-trigger {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
@@ -34,6 +34,17 @@
|
|||||||
</mat-tab>
|
</mat-tab>
|
||||||
<mat-tab *ngIf="canPerformLocalUpload()"
|
<mat-tab *ngIf="canPerformLocalUpload()"
|
||||||
[disabled]="isNotAllowedToUpload()">
|
[disabled]="isNotAllowedToUpload()">
|
||||||
|
<adf-toolbar>
|
||||||
|
<adf-toolbar-title>
|
||||||
|
<adf-dropdown-breadcrumb
|
||||||
|
class="adf-content-node-selector-content-breadcrumb"
|
||||||
|
[folderNode]="breadcrumbFolderNode"
|
||||||
|
[rootId]="data?.currentFolderId"
|
||||||
|
[readOnly]="true"
|
||||||
|
data-automation-id="content-node-selector-upload-breadcrumb"
|
||||||
|
></adf-dropdown-breadcrumb>
|
||||||
|
</adf-toolbar-title>
|
||||||
|
</adf-toolbar>
|
||||||
<ng-template mat-tab-label>
|
<ng-template mat-tab-label>
|
||||||
{{ 'NODE_SELECTOR.UPLOAD_FROM_DEVICE' | translate }}
|
{{ 'NODE_SELECTOR.UPLOAD_FROM_DEVICE' | translate }}
|
||||||
<mat-icon *ngIf="hasUploadError()"
|
<mat-icon *ngIf="hasUploadError()"
|
||||||
|
@@ -39,6 +39,7 @@ export class ContentNodeSelectorComponent implements OnInit {
|
|||||||
hasAllowableOperations = false;
|
hasAllowableOperations = false;
|
||||||
isLoading = true;
|
isLoading = true;
|
||||||
selectedTabIndex: number = 0;
|
selectedTabIndex: number = 0;
|
||||||
|
breadcrumbFolderNode: Node;
|
||||||
|
|
||||||
constructor(private translation: TranslationService,
|
constructor(private translation: TranslationService,
|
||||||
private contentService: ContentService,
|
private contentService: ContentService,
|
||||||
@@ -116,6 +117,7 @@ export class ContentNodeSelectorComponent implements OnInit {
|
|||||||
|
|
||||||
onCurrentFolder(currentFolder: Node) {
|
onCurrentFolder(currentFolder: Node) {
|
||||||
this.hasAllowableOperations = this.contentService.hasAllowableOperations(currentFolder, AllowableOperationsEnum.CREATE);
|
this.hasAllowableOperations = this.contentService.hasAllowableOperations(currentFolder, AllowableOperationsEnum.CREATE);
|
||||||
|
this.breadcrumbFolderNode = currentFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
isNotAllowedToUpload() {
|
isNotAllowedToUpload() {
|
||||||
|
Reference in New Issue
Block a user