{{element.display}}
@@ -17,15 +13,11 @@
-
{{type}}
+
{{element.title || type}}
{{element.description}}
diff --git a/src/Squidex/app/features/rules/pages/rules/rule-element.component.scss b/src/Squidex/app/features/rules/pages/rules/rule-element.component.scss
index 7c0f4f750..ad37d777d 100644
--- a/src/Squidex/app/features/rules/pages/rules/rule-element.component.scss
+++ b/src/Squidex/app/features/rules/pages/rules/rule-element.component.scss
@@ -27,14 +27,6 @@
font-weight: normal;
padding: 0 .8rem;
}
-
- .icon {
- font-size: 20px;
- }
-
- .svg-icon {
- width: 20px;
- }
}
.large {
@@ -68,23 +60,4 @@
padding: 1rem;
line-height: 1px;
}
-
- .icon {
- font-size: 30px;
- }
-
- .svg-icon {
- width: 30px;
- }
-}
-
-.svg-icon {
- display: inline-block;
-}
-
-::ng-deep {
- svg {
- fill: $color-dark-foreground;
- display: block;
- }
}
\ No newline at end of file
diff --git a/src/Squidex/app/features/rules/pages/rules/rule-icon.component.ts b/src/Squidex/app/features/rules/pages/rules/rule-icon.component.ts
new file mode 100644
index 000000000..8d858330b
--- /dev/null
+++ b/src/Squidex/app/features/rules/pages/rules/rule-icon.component.ts
@@ -0,0 +1,70 @@
+/*
+ * Squidex Headless CMS
+ *
+ * @license
+ * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
+ */
+
+// tslint:disable: component-selector
+
+import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
+
+import { RuleElementDto } from '@app/shared';
+
+@Component({
+ selector: 'sqx-rule-icon',
+ template: `
+
+
+
+
+
+
+ `,
+ styles: [
+ `.svg-icon {
+ display: inline-block;
+ }
+
+ .icon {
+ color: white;
+ }
+
+ .sm .icon {
+ font-size: 14px;
+ }
+
+ .sm .svg-icon {
+ width: 14px;
+ }
+
+ .md .icon {
+ font-size: 20px;
+ }
+
+ .md .svg-icon {
+ width: 20px;
+ }
+
+ .lg .icon {
+ font-size: 30px;
+ }
+
+ .lg .svg-icon {
+ width: 30px;
+ }
+
+ ::ng-deep svg {
+ fill: white;
+ display: block;
+ }`
+ ],
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class RuleIconComponent {
+ @Input()
+ public element: RuleElementDto;
+
+ @Input()
+ public size: 'sm' | 'md' | 'lg' = 'sm';
+}
\ No newline at end of file
diff --git a/src/Squidex/app/features/rules/pages/rules/rule-wizard.component.html b/src/Squidex/app/features/rules/pages/rules/rule-wizard.component.html
index 9f0fde00f..bdc63a202 100644
--- a/src/Squidex/app/features/rules/pages/rules/rule-wizard.component.html
+++ b/src/Squidex/app/features/rules/pages/rules/rule-wizard.component.html
@@ -6,17 +6,8 @@
Edit Action
-
- Step 1 of 4: Select Trigger
-
-
- Step 2 of 4: Configure Trigger
-
-
- Step 3 of 4: Select Action
-
-
- Step 4 of 4: Configure Action
+
+ {{titles[step - 1]}}
@@ -34,8 +25,12 @@
-