Skip to content

Commit 65b6184

Browse files
Fix UI bugs. (#1312)
1 parent 6351972 commit 65b6184

5 files changed

Lines changed: 8 additions & 11 deletions

File tree

backend/src/Squidex.Infrastructure/EventSourcing/Consume/EventConsumerProcessor.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ await UpdateAsync(async () =>
175175
}, State.Position);
176176
}
177177

178-
private async Task DispatchAsync(IReadOnlyList<Envelope<IEvent>> events)
178+
private async Task DispatchAsync(List<Envelope<IEvent>> events)
179179
{
180180
if (events.Count > 0)
181181
{
@@ -249,11 +249,8 @@ private async Task ClearAsync()
249249

250250
private void Unsubscribe()
251251
{
252-
if (currentSubscription != null)
253-
{
254-
currentSubscription.Dispose();
255-
currentSubscription = null;
256-
}
252+
currentSubscription?.Dispose();
253+
currentSubscription = null;
257254
}
258255

259256
private void Subscribe()

frontend/src/app/features/schemas/pages/schema/fields/types/string-validation.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div [formGroup]="fieldForm">
22
@if (showUnique) {
3-
<sqx-form-row #placeholderRow for="placeholder" hint="schemas.field.placeholderHint" label="schemas.field.placeholder" [prefix]="field.fieldId">
4-
<input class="form-control" [id]="placeholderRow.fieldName" formControlName="placeholder" maxlength="100" />
3+
<sqx-form-row #isUniqueRow check for="isUnique" label="schemas.field.unique" [prefix]="field.fieldId">
4+
<input class="form-check-input" [id]="isUniqueRow.fieldName" formControlName="isUnique" type="checkbox" />
55
</sqx-form-row>
66
}
77

frontend/src/app/shared/model/custom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class ContentDto extends generated.ContentDto {
237237
}
238238

239239
public get canDelete() {
240-
return this.compute('canDelete', () => hasAnyLink(this._links, 'update'));
240+
return this.compute('canDelete', () => hasAnyLink(this._links, 'delete'));
241241
}
242242

243243
public get canDraftCreate() {

frontend/src/app/shared/model/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11544,7 +11544,7 @@ export class ContentDto extends ResourceDto implements IContentDto {
1154411544
}
1154511545

1154611546
public get canDelete() {
11547-
return this.compute('canDelete', () => hasAnyLink(this._links, 'update'));
11547+
return this.compute('canDelete', () => hasAnyLink(this._links, 'delete'));
1154811548
}
1154911549

1155011550
public get canDraftCreate() {

frontend/src/app/theme/_bootstrap.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ a {
208208
}
209209
}
210210

211-
a {
211+
a, button {
212212
// Special style for menu item to delete something.
213213
&.dropdown-item-delete {
214214
& {

0 commit comments

Comments
 (0)