Change task-list adding dialog style.
This commit is contained in:
@@ -34,7 +34,12 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openNewListForm(): void {
|
openNewListForm(): void {
|
||||||
this._dialog.open(AddTaskListComponent);
|
this._dialog.open(
|
||||||
|
AddTaskListComponent,
|
||||||
|
{
|
||||||
|
width: '20rem'
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
goTaskListsPane(): void {
|
goTaskListsPane(): void {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<h2>Création d'une task-list</h2>
|
||||||
<form [formGroup]="addTaskListFormGroup" (submit)="onSubmit()" ngNativeValidate>
|
<form [formGroup]="addTaskListFormGroup" (submit)="onSubmit()" ngNativeValidate>
|
||||||
<p>
|
<p>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
@@ -8,8 +9,8 @@
|
|||||||
</mat-error>
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div class="actions">
|
||||||
<button mat-raised-button type="button" (click)="close()">Annuler</button>
|
<button class="raised" type="button" (click)="close()">Annuler</button>
|
||||||
<button mat-raised-button type="submit">Créer une liste</button>
|
<button class="raised" type="submit">Créer une liste</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
form {
|
||||||
|
p {
|
||||||
|
mat-form-field {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.actions {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<h2>Renommage d'une task-list</h2>
|
||||||
<form [formGroup]="renameTaskListFormGroup" (submit)="onSubmit()" ngNativeValidate>
|
<form [formGroup]="renameTaskListFormGroup" (submit)="onSubmit()" ngNativeValidate>
|
||||||
<p>
|
<p>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
|
|||||||
@@ -31,15 +31,6 @@ export class TaskListsComponent implements OnInit, OnDestroy {
|
|||||||
this._storeSubscription?.unsubscribe();
|
this._storeSubscription?.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
openNewListForm(): void {
|
|
||||||
this._dialog.open(
|
|
||||||
AddTaskListComponent,
|
|
||||||
{
|
|
||||||
width: '20rem'
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
selectActiveTaskList(taskList: TaskList): void {
|
selectActiveTaskList(taskList: TaskList): void {
|
||||||
if (this.isSelectionModeEnabled()) {
|
if (this.isSelectionModeEnabled()) {
|
||||||
this._taskListService.selectTaskList(taskList);
|
this._taskListService.selectTaskList(taskList);
|
||||||
|
|||||||
Reference in New Issue
Block a user