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