![]()
diff --git a/src/Squidex/app/shared/components/asset.component.scss b/src/Squidex/app/shared/components/asset.component.scss
index 1caa49e4b..0ccea99d0 100644
--- a/src/Squidex/app/shared/components/asset.component.scss
+++ b/src/Squidex/app/shared/components/asset.component.scss
@@ -287,6 +287,14 @@ $list-height: 2.375rem;
cursor: pointer;
}
+.bg {
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAACbSURBVGhD7c6hDQAxAMPA33+m7vYlJh7AoFKOBMbfyfyZRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4E3o9kA7YFFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgQejz7nPYYKl8IqSfgAAAABJRU5ErkJggg==');
+}
+
+.bg2 {
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAAAsSURBVDhPY9iDF/zHC0Y1YwCoKhxgRGqG0jgA1AwcYFQzBoCqwgFGnuY9ewCdSg6FRg4gMAAAAABJRU5ErkJggg==');
+}
+
.tags {
min-height: 26px;
}
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/asset.component.ts b/src/Squidex/app/shared/components/asset.component.ts
index 822d7bea2..02c40c200 100644
--- a/src/Squidex/app/shared/components/asset.component.ts
+++ b/src/Squidex/app/shared/components/asset.component.ts
@@ -209,7 +209,7 @@ export class AssetComponent implements OnDestroy, OnInit {
private setProgress(progress: number) {
this.progress = progress;
- this.changeDetector.markForCheck();
+ this.changeDetector.detectChanges();
}
private updateAsset(asset: AssetDto, emitEvent: boolean) {
@@ -224,6 +224,6 @@ export class AssetComponent implements OnDestroy, OnInit {
this.renameCancel();
- this.changeDetector.markForCheck();
+ this.changeDetector.detectChanges();
}
}
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/geolocation-editor.component.ts b/src/Squidex/app/shared/components/geolocation-editor.component.ts
index 88d13df64..b47014d41 100644
--- a/src/Squidex/app/shared/components/geolocation-editor.component.ts
+++ b/src/Squidex/app/shared/components/geolocation-editor.component.ts
@@ -272,13 +272,24 @@ export class GeolocationEditorComponent implements ControlValueAccessor, AfterVi
private updateMarker(zoom: boolean, fireEvent: boolean) {
if (!this.isGoogleMaps) {
- this.updateMarkerOSM(zoom, fireEvent);
+ this.updateMarkerOSM(zoom);
} else {
- this.updateMarkerGoogle(zoom, fireEvent);
+ this.updateMarkerGoogle(zoom);
+ }
+
+ if (this.value) {
+ this.geolocationForm.setValue(this.value, { emitEvent: true, onlySelf: false });
+ } else {
+ this.geolocationForm.reset(undefined, { emitEvent: true, onlySelf: false });
+ }
+
+ if (fireEvent) {
+ this.callChange(this.value);
+ this.callTouched();
}
}
- private updateMarkerOSM(zoom: boolean, fireEvent: boolean) {
+ private updateMarkerOSM(zoom: boolean) {
if (this.value) {
if (!this.marker) {
this.marker = L.marker([0, 90], { draggable: true }).addTo(this.map);
@@ -307,8 +318,6 @@ export class GeolocationEditorComponent implements ControlValueAccessor, AfterVi
}
this.marker.setLatLng(latLng);
-
- this.geolocationForm.setValue(this.value, { emitEvent: false, onlySelf: false });
} else {
if (this.marker) {
this.marker.removeFrom(this.map);
@@ -316,17 +325,10 @@ export class GeolocationEditorComponent implements ControlValueAccessor, AfterVi
}
this.map.fitWorld();
-
- this.geolocationForm.reset(undefined, { emitEvent: false, onlySelf: false });
- }
-
- if (fireEvent) {
- this.callChange(this.value);
- this.callTouched();
}
}
- private updateMarkerGoogle(zoom: boolean, fireEvent: boolean) {
+ private updateMarkerGoogle(zoom: boolean) {
if (this.value) {
if (!this.marker) {
this.marker = new google.maps.Marker({
@@ -361,8 +363,6 @@ export class GeolocationEditorComponent implements ControlValueAccessor, AfterVi
this.marker.setPosition(latLng);
this.map.setZoom(12);
-
- this.geolocationForm.setValue(this.value, { emitEvent: false, onlySelf: false });
} else {
if (this.marker) {
this.marker.setMap(null);
@@ -370,13 +370,6 @@ export class GeolocationEditorComponent implements ControlValueAccessor, AfterVi
}
this.map.setCenter({ lat: 0, lng: 0 });
-
- this.geolocationForm.reset(undefined, { emitEvent: false, onlySelf: false });
- }
-
- if (fireEvent) {
- this.callChange(this.value);
- this.callTouched();
}
}
}
\ No newline at end of file
diff --git a/src/Squidex/app/shared/components/help.component.ts b/src/Squidex/app/shared/components/help.component.ts
index c7679636c..19059f168 100644
--- a/src/Squidex/app/shared/components/help.component.ts
+++ b/src/Squidex/app/shared/components/help.component.ts
@@ -17,8 +17,7 @@ import { HelpService } from '@app/shared/internal';
changeDetection: ChangeDetectionStrategy.OnPush
})
export class HelpComponent {
- public helpSections =
- this.helpService.getHelp(this.route.snapshot.data['helpPage']);
+ public helpSections = this.helpService.getHelp(this.route.snapshot.data['helpPage']);
constructor(
private readonly helpService: HelpService,
diff --git a/src/Squidex/app/shared/components/history-list.component.html b/src/Squidex/app/shared/components/history-list.component.html
index 1581365f1..516f50197 100644
--- a/src/Squidex/app/shared/components/history-list.component.html
+++ b/src/Squidex/app/shared/components/history-list.component.html
@@ -1,5 +1,5 @@
-
+
diff --git a/src/Squidex/app/shared/components/pipes.ts b/src/Squidex/app/shared/components/pipes.ts
index 860296f39..a5096bfe0 100644
--- a/src/Squidex/app/shared/components/pipes.ts
+++ b/src/Squidex/app/shared/components/pipes.ts
@@ -44,7 +44,7 @@ class UserAsyncPipe implements OnDestroy {
this.subscription = transform(this.users).subscribe(value => {
this.lastValue = value;
- this.changeDetector.markForCheck();
+ this.changeDetector.detectChanges();
});
}
diff --git a/src/Squidex/app/shell/pages/internal/internal-area.component.html b/src/Squidex/app/shell/pages/internal/internal-area.component.html
index c6bbe47b6..ddd4dcbb5 100644
--- a/src/Squidex/app/shell/pages/internal/internal-area.component.html
+++ b/src/Squidex/app/shell/pages/internal/internal-area.component.html
@@ -1,6 +1,12 @@