|
@@ -81,13 +81,15 @@
|
|
|
|
|
|
|
|
|
<!-- Display validation status if debugging and not nested -->
|
|
|
-<div *ngIf="debug && path.length === 0">
|
|
|
- <pre [ngClass]="{
|
|
|
- 'alert-success' : formGroup.valid && formGroup.dirty,
|
|
|
- 'alert-danger' : !formGroup.valid && formGroup.dirty,
|
|
|
- 'alert-secondary' : !formGroup.dirty
|
|
|
- }"
|
|
|
- class="alert mt-4"
|
|
|
- role="alert">{{ formGroup.pristine ? 'Untouched' : getValidationErrors() | json }}</pre>
|
|
|
+<div *ngIf="debug && path.length === 0" [ngClass]="{
|
|
|
+ 'alert-success' : formGroup.valid && formGroup.dirty,
|
|
|
+ 'alert-danger' : !formGroup.valid && formGroup.dirty,
|
|
|
+ 'alert-info' : !formGroup.dirty
|
|
|
+ }"
|
|
|
+ class="alert __debug"
|
|
|
+ role="alert">
|
|
|
+ <div class="alert-items">
|
|
|
+ <pre class="alert-text" style="border: none;">{{ formGroup.pristine ? 'Untouched' : getValidationErrors() | json }}</pre>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|