-
diff --git a/src/Squidex/app/features/settings/pages/workflows/workflow-transition.component.scss b/src/Squidex/app/features/settings/pages/workflows/workflow-transition.component.scss
index 231437fc3..6a5b45945 100644
--- a/src/Squidex/app/features/settings/pages/workflows/workflow-transition.component.scss
+++ b/src/Squidex/app/features/settings/pages/workflows/workflow-transition.component.scss
@@ -14,4 +14,11 @@
pointer-events: none;
line-height: 1.2rem;
border: 1px solid transparent;
+}
+
+.form-control {
+ &:disabled,
+ &.disabled {
+ background: $panel-light-background;
+ }
}
\ No newline at end of file
diff --git a/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.html b/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.html
index 97ca153bc..452c4fb20 100644
--- a/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.html
+++ b/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.html
@@ -1,6 +1,8 @@
+
+
- Workflows
+ Workflow
@@ -20,12 +22,13 @@
-
+
Add Step
-
+
\ No newline at end of file
diff --git a/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.ts b/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.ts
index c7e38ab74..e6a69b70c 100644
--- a/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.ts
+++ b/src/Squidex/app/features/settings/pages/workflows/workflows-page.component.ts
@@ -8,6 +8,7 @@
import { Component, OnInit } from '@angular/core';
import {
+ AppsState,
MathHelper,
RolesState,
WorkflowDto,
@@ -29,6 +30,7 @@ export class WorkflowsPageComponent implements OnInit {
public workflow: WorkflowDto;
constructor(
+ public readonly appsState: AppsState,
public readonly rolesState: RolesState,
public readonly workflowsState: WorkflowsState
) {
diff --git a/src/Squidex/app/features/settings/settings-area.component.html b/src/Squidex/app/features/settings/settings-area.component.html
index cee2481d3..1a1a9bcb7 100644
--- a/src/Squidex/app/features/settings/settings-area.component.html
+++ b/src/Squidex/app/features/settings/settings-area.component.html
@@ -45,7 +45,7 @@
- Workflows
+ Workflow
diff --git a/src/Squidex/app/framework/utils/immutable-array.ts b/src/Squidex/app/framework/utils/immutable-array.ts
index 36294a581..354b883b2 100644
--- a/src/Squidex/app/framework/utils/immutable-array.ts
+++ b/src/Squidex/app/framework/utils/immutable-array.ts
@@ -197,7 +197,7 @@ export function compareStringsAsc(a: string, b: string) {
}
export function compareStringsDesc(a: string, b: string) {
- return a.localeCompare(b, undefined, { sensitivity: 'base' });
+ return b.localeCompare(a, undefined, { sensitivity: 'base' });
}
export function compareNumbersAsc(a: number, b: number) {
diff --git a/src/Squidex/app/shared/services/workflows.service.ts b/src/Squidex/app/shared/services/workflows.service.ts
index 9e7f5cdbc..e1b3398bb 100644
--- a/src/Squidex/app/shared/services/workflows.service.ts
+++ b/src/Squidex/app/shared/services/workflows.service.ts
@@ -27,8 +27,8 @@ export class WorkflowDto {
public static DEFAULT =
new WorkflowDto()
- .setStep('Archived', { color: '#eb3142', noUpdate: true })
.setStep('Draft', { color: '#8091a5' })
+ .setStep('Archived', { color: '#eb3142', noUpdate: true })
.setStep('Published', { color: '#4bb958', isLocked: true })
.setTransition('Archived', 'Draft')
.setTransition('Draft', 'Archived')
diff --git a/src/Squidex/app/shared/state/workflows.state.spec.ts b/src/Squidex/app/shared/state/workflows.state.spec.ts
index 41810332e..4ad671a27 100644
--- a/src/Squidex/app/shared/state/workflows.state.spec.ts
+++ b/src/Squidex/app/shared/state/workflows.state.spec.ts
@@ -84,7 +84,7 @@ describe('WorkflowsState', () => {
const request = oldWorkflow.workflow.serialize();
- workflowsService.setup(x => x.putWorkflow(app, oldWorkflow, request, version))
+ workflowsService.setup(x => x.putWorkflow(app, oldWorkflow.workflow, request, version))
.returns(() => of(versioned(newVersion, updated))).verifiable();
workflowsState.save(oldWorkflow.workflow).subscribe();