Skip to content
Snippets Groups Projects
Commit 5cc4ac77 authored by Xiao Gui's avatar Xiao Gui
Browse files

maint: show only 6 items at most

maint: update text when templ/parc not available
parent 01108e24
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ export class WrapperATPSelector implements OnDestroy{
}
return this.#askUser(
null,
`Template **${template.name}** does not support the current parcellation **${selectedATP.parcellation.name}**. Please select one of the following parcellations:`,
`Current parcellation **${selectedATP.parcellation.name}** is not mapped in the selected template **${template.name}**. Please select one of the following parcellations:`,
parcs.map(p => p.name),
{
actionsAsList: true
......@@ -115,7 +115,7 @@ export class WrapperATPSelector implements OnDestroy{
}
return this.#askUser(
null,
`Parcellation **${parcellation.name}** is not mapped in the current template **${selectedATP.template.name}**. Please select one of the following templates:`,
`Selected parcellation **${parcellation.name}** is not mapped in the current template **${selectedATP.template.name}**. Please select one of the following templates:`,
tmpls.map(tmpl => tmpl.name),
{
actionsAsList: true
......
......@@ -2,3 +2,9 @@ mat-dialog-actions a i
{
margin-right: 0.5rem;
}
mat-dialog-content
{
display: block;
max-height: 30dvh;
}
......@@ -2,27 +2,33 @@
{{ data.title }}
</h1>
<div *ngIf="data.descMd || data.desc" mat-dialog-content class="mat-body">
<ng-template [ngIf]="data.desc">
{{ data.desc }}
</ng-template>
<markdown-dom *ngIf="data.descMd" [markdown]="data.descMd">
</markdown-dom>
</div>
<mat-dialog-content>
<ng-template sxplrExperimentalFlag [experimental]="true" #actionExpmt="sxplrExperimentalFlag" [ngIf]="actionExpmt.show$ | async">
<ng-template [ngIf]="data.actionsAsList">
<mat-action-list>
<ng-template ngFor [ngForOf]="data.actions" let-action>
<button mat-list-item [mat-dialog-close]="action">
{{ action }}
</button>
<div *ngIf="data.descMd || data.desc" mat-dialog-content class="mat-body">
<ng-template [ngIf]="data.desc">
{{ data.desc }}
</ng-template>
</mat-action-list>
</ng-template>
</ng-template>
<markdown-dom *ngIf="data.descMd" [markdown]="data.descMd">
</markdown-dom>
</div>
<ng-template sxplrExperimentalFlag [experimental]="true" #actionExpmt="sxplrExperimentalFlag" [ngIf]="actionExpmt.show$ | async">
<ng-template [ngIf]="data.actionsAsList">
<mat-action-list>
<ng-template ngFor [ngForOf]="data.actions" let-action let-first="first">
<ng-template [ngIf]="!first">
<mat-divider></mat-divider>
</ng-template>
<button mat-list-item [mat-dialog-close]="action">
{{ action }}
</button>
</ng-template>
</mat-action-list>
</ng-template>
</ng-template>
</mat-dialog-content>
<mat-dialog-actions align="start">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment