mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
65600: Cleanup & indentation of shortDescription
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
<div class="btn-group"
|
<div class="btn-group"
|
||||||
(click)="getNextPage(node)">
|
(click)="getNextPage(node)">
|
||||||
<button type="button" class="btn btn-default" cdkTreeNodeToggle
|
<button type="button" class="btn btn-default" cdkTreeNodeToggle
|
||||||
[attr.aria-label]="'toggle ' + node.name"
|
|
||||||
(click)="getNextPage(node)">
|
(click)="getNextPage(node)">
|
||||||
<span class="fa fa-plus"
|
<span class="fa fa-plus"
|
||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
@@ -15,24 +14,33 @@
|
|||||||
{{ 'communityList.showMore' | translate }}
|
{{ 'communityList.showMore' | translate }}
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-muted" cdkTreeNodePadding>
|
||||||
|
<div class="d-flex" *ngIf="node.payload.shortDescription">
|
||||||
|
<button type="button" class="btn btn-default invisible">
|
||||||
|
</button>
|
||||||
|
<span>{{node.payload.shortDescription}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</cdk-tree-node>
|
</cdk-tree-node>
|
||||||
<!-- This is the tree node template for leaf nodes -->
|
<!-- This is the tree node template for leaf nodes -->
|
||||||
<cdk-tree-node *cdkTreeNodeDef="let node; when: !(hasChild && isShowMore)" cdkTreeNodePadding
|
<cdk-tree-node *cdkTreeNodeDef="let node; when: !(hasChild && isShowMore)" cdkTreeNodePadding
|
||||||
class="example-tree-node">
|
class="example-tree-node">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="button" class="btn btn-default" cdkTreeNodeToggle >
|
<button type="button" class="btn btn-default" cdkTreeNodeToggle>
|
||||||
<span class="fa fa-minus"
|
<span class="fa fa-minus"
|
||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<h6 class="align-middle pt-2">
|
<h6 class="align-middle pt-2">
|
||||||
<a [routerLink]="node.route" class="lead">
|
<a [routerLink]="node.route" class="lead">
|
||||||
{{node.name}} {{node.id}}
|
{{node.name}}
|
||||||
</a>
|
</a>
|
||||||
</h6>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-muted" cdkTreeNodePadding>
|
<div class="text-muted" cdkTreeNodePadding>
|
||||||
<div class="d-flex" *ngIf="node.payload.shortDescription" >
|
<div class="d-flex" *ngIf="node.payload.shortDescription">
|
||||||
<button type="button" class="btn btn-default invisible">
|
<button type="button" class="btn btn-default invisible">
|
||||||
|
<span class="{{node.isExpanded ? 'fa fa-chevron-down' : 'fa fa-chevron-right'}}"
|
||||||
|
aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<span>{{node.payload.shortDescription}}</span>
|
<span>{{node.payload.shortDescription}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,18 +54,18 @@
|
|||||||
[attr.aria-label]="'toggle ' + node.name"
|
[attr.aria-label]="'toggle ' + node.name"
|
||||||
(click)="toggleExpanded(node)"
|
(click)="toggleExpanded(node)"
|
||||||
[ngClass]="node.isExpandable ? 'visible' : 'invisible'">
|
[ngClass]="node.isExpandable ? 'visible' : 'invisible'">
|
||||||
<span class="{{node.isExpanded ? 'fa fa-chevron-down' : 'fa fa-chevron-right'}}"
|
<span class="{{node.isExpanded ? 'fa fa-chevron-down' : 'fa fa-chevron-right'}}" aria-hidden="true"></span>
|
||||||
aria-hidden="true"></span>
|
|
||||||
</button>
|
</button>
|
||||||
<h5 class="align-middle pt-2">
|
<h5 class="align-middle pt-2">
|
||||||
<a [routerLink]="node.route" class="lead">
|
<a [routerLink]="node.route" class="lead">
|
||||||
{{node.name}} {{node.id}}
|
{{node.name}}
|
||||||
</a>
|
</a>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-muted" cdkTreeNodePadding>
|
<div class="text-muted" cdkTreeNodePadding>
|
||||||
<div class="d-flex" *ngIf="node.payload.shortDescription" >
|
<div class="d-flex" *ngIf="node.payload.shortDescription">
|
||||||
<button type="button" class="btn btn-default invisible">
|
<button type="button" class="btn btn-default invisible">
|
||||||
|
<span class="{{node.isExpanded ? 'fa fa-chevron-down' : 'fa fa-chevron-right'}}" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<span>{{node.payload.shortDescription}}</span>
|
<span>{{node.payload.shortDescription}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -4,7 +4,7 @@ import {CommunityListDatasource} from '../community-list-datasource';
|
|||||||
import {FlatTreeControl} from '@angular/cdk/tree';
|
import {FlatTreeControl} from '@angular/cdk/tree';
|
||||||
import {Collection} from '../../core/shared/collection.model';
|
import {Collection} from '../../core/shared/collection.model';
|
||||||
import {Community} from '../../core/shared/community.model';
|
import {Community} from '../../core/shared/community.model';
|
||||||
import {isEmpty} from "../../shared/empty.util";
|
import {isEmpty} from '../../shared/empty.util';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-community-list',
|
selector: 'ds-community-list',
|
||||||
@@ -14,7 +14,6 @@ import {isEmpty} from "../../shared/empty.util";
|
|||||||
export class CommunityListComponent implements OnInit {
|
export class CommunityListComponent implements OnInit {
|
||||||
|
|
||||||
private expandedNodes: FlatNode[] = [];
|
private expandedNodes: FlatNode[] = [];
|
||||||
private Arr = Array;
|
|
||||||
|
|
||||||
treeControl = new FlatTreeControl<FlatNode>(
|
treeControl = new FlatTreeControl<FlatNode>(
|
||||||
(node) => node.level, (node) => node.isExpandable
|
(node) => node.level, (node) => node.isExpandable
|
||||||
|
@@ -59,7 +59,6 @@ export class CommunityDataService extends ComColDataService<Community> {
|
|||||||
|
|
||||||
findSubCommunitiesPerParentCommunity(parentCommunityUUID: string, options: FindListOptions = {}): Observable<RemoteData<PaginatedList<Community>>> {
|
findSubCommunitiesPerParentCommunity(parentCommunityUUID: string, options: FindListOptions = {}): Observable<RemoteData<PaginatedList<Community>>> {
|
||||||
const hrefObs = this.getFindAllHref(options, this.subcommunitiesLinkPath + '?parent=' + parentCommunityUUID);
|
const hrefObs = this.getFindAllHref(options, this.subcommunitiesLinkPath + '?parent=' + parentCommunityUUID);
|
||||||
console.log('subcomurl', hrefObs.pipe(take(1)).subscribe((val) => console.log('subcomurl', val)));
|
|
||||||
|
|
||||||
hrefObs.pipe(
|
hrefObs.pipe(
|
||||||
filter((href: string) => hasValue(href)),
|
filter((href: string) => hasValue(href)),
|
||||||
|
Reference in New Issue
Block a user