You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2022/07/28 09:43:46 UTC
[incubator-streampipes] 03/04: [hotfix] Add minor style improvements to schema editor
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 9a0b83417189d5575dede251343e08db7a985351
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Thu Jul 28 11:42:55 2022 +0200
[hotfix] Add minor style improvements to schema editor
---
.../schema-editor/event-schema/event-schema.component.html | 11 +++++++++++
.../loading-message/loading-message.component.html | 4 ++--
.../edit-timestamp-property.component.html | 4 ++--
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/ui/src/app/connect/components/new-adapter/schema-editor/event-schema/event-schema.component.html b/ui/src/app/connect/components/new-adapter/schema-editor/event-schema/event-schema.component.html
index 7d2e17ae8..163fbb730 100644
--- a/ui/src/app/connect/components/new-adapter/schema-editor/event-schema/event-schema.component.html
+++ b/ui/src/app/connect/components/new-adapter/schema-editor/event-schema/event-schema.component.html
@@ -55,6 +55,17 @@
(removeSelectedPropertiesEmitter)="removeSelectedProperties()">
</sp-schema-editor-header>
</div>
+ <div header *ngIf="!isLoading && isError" fxFlex="100">
+ <div fxLayout="row" fxLayoutAlign="end center">
+ <button color="accent"
+ mat-button
+ mat-icon-button
+ matTooltip="Refresh Schema"
+ (click)="guessSchema()">
+ <mat-icon>refresh</mat-icon>
+ </button>
+ </div>
+ </div>
<div fxFlex="100">
diff --git a/ui/src/app/connect/components/new-adapter/schema-editor/loading-message/loading-message.component.html b/ui/src/app/connect/components/new-adapter/schema-editor/loading-message/loading-message.component.html
index 639fd6c29..4ef8106d2 100644
--- a/ui/src/app/connect/components/new-adapter/schema-editor/loading-message/loading-message.component.html
+++ b/ui/src/app/connect/components/new-adapter/schema-editor/loading-message/loading-message.component.html
@@ -18,9 +18,9 @@
<div fxLayout="column" >
<div fxLayoutAlign="center">
- <mat-spinner fxLayoutAlign="center" style="margin: 10px 0 5px 0" color="accent">Loading</mat-spinner>
+ <mat-spinner fxLayoutAlign="center" style="margin: 10px 0 5px 0" color="accent" [diameter]="30">Loading</mat-spinner>
</div>
<div fxLayoutAlign="center">
- <h3>Guessing the event schema...</h3>
+ <h4>Guessing the event schema...</h4>
</div>
</div>
diff --git a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html
index 83c88345e..12c9ea6e1 100644
--- a/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html
+++ b/ui/src/app/connect/dialog/edit-event-property/components/edit-value-transformation/edit-timestamp-property/edit-timestamp-property.component.html
@@ -30,12 +30,12 @@
<div fxLayout="row" fxLayoutAlign="start">
- <div class="form-group" fxFlexAlign="center">
+ <div class="form-group" fxFlexAlign="center" fxFlex="100">
<mat-form-field class="w-100"
*ngIf="cachedProperty.timestampTransformationMode === 'formatString'"
color="accent"
fxFlex="100">
- <input matInput
+ <input class="w-100" matInput
placeholder="E.g. yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
data-cy="connect-timestamp-string-regex"
[(ngModel)]="cachedProperty.timestampTransformationFormatString">