update edit
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
<mat-form-field>
|
||||
<textarea [mat-autosize] [matAutosizeMinRows]="3" matInput placeholder="{{'submission.text' | i18n}}"
|
||||
<textarea matAutosize matAutosizeMinRows="3" matInput placeholder="{{'submission.text' | i18n}}"
|
||||
[required]="entryType != 'LINK'" formControlName="text"></textarea>
|
||||
<mat-error>
|
||||
{{'submission.text.error' | i18n}}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
<mat-form-field>
|
||||
<textarea [mat-autosize] [matAutosizeMinRows]="3" matInput placeholder="{{'settings.about' | i18n}}"
|
||||
<textarea matAutosize matAutosizeMinRows="3" matInput placeholder="{{'settings.about' | i18n}}"
|
||||
formControlName="about"></textarea>
|
||||
<mat-error>
|
||||
{{'settings.about.error' | i18n}}
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<ng-container *ngIf="comment.metadata && comment.metadata.edit">
|
||||
<form [formGroup]="form" (ngSubmit)="update()" #formDirective="ngForm">
|
||||
<mat-form-field>
|
||||
<textarea [mat-autosize] [matAutosizeMinRows]="3" matInput formControlName="text"
|
||||
<textarea matAutosize matAutosizeMinRows="3" matInput formControlName="text"
|
||||
placeholder="{{'comment.text' | i18n}}" required></textarea>
|
||||
<mat-error *ngIf="hasError('text')">
|
||||
{{'comment.text.error' | i18n}}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<form [formGroup]="form" (ngSubmit)="create()" #formDirective="ngForm">
|
||||
|
||||
<mat-form-field>
|
||||
<textarea [mat-autosize] [matAutosizeMinRows]="3" matInput formControlName="text" placeholder="{{'comment.text' | i18n}}" required></textarea>
|
||||
<textarea matAutosize matAutosizeMinRows="3" matInput formControlName="text" placeholder="{{'comment.text' | i18n}}" required></textarea>
|
||||
<mat-error *ngIf="hasError('text')">
|
||||
{{'comment.text.error' | i18n}}
|
||||
</mat-error>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</span>
|
||||
<span class="spacer"></span>
|
||||
<ng-container *ngIf="authenticated">
|
||||
<a routerLink="/submit" mat-raised-button color="accent">{{'submission' |
|
||||
<a routerLink="/submit" mat-raised-button color="accent"><mat-icon>edit</mat-icon> {{'submission' |
|
||||
i18n}}</a>
|
||||
</ng-container>
|
||||
<ng-container>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</a>
|
||||
<small>
|
||||
<a routerLink="/v/{{view.name}}/edit" matTooltip="{{'views.edit' | i18n}}" color="primary" class="edit">
|
||||
<mat-icon inline="true">edit</mat-icon>
|
||||
<mat-icon inline="true">tune</mat-icon>
|
||||
</a>
|
||||
</small>
|
||||
</mat-list-item>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Custom Theming for Angular Material
|
||||
@use '~@angular/material' as mat;
|
||||
@use '@angular/material' as mat;
|
||||
// For more information: https://material.angular.io/guide/theming
|
||||
// Plus imports for other components in your app.
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
@use '~@angular/material' as mat;
|
||||
@use '@angular/material' as mat;
|
||||
|
||||
$light-primary: mat.define-palette(mat.$deep-orange-palette, 800);
|
||||
$light-accent: mat.define-palette(mat.$grey-palette, A400, A200, A700);
|
||||
|
||||
Reference in New Issue
Block a user