Browse Source

Bugfixes.

pull/383/head
Sebastian Stehle 7 years ago
parent
commit
56ffee7fc3
  1. 4
      src/Squidex/app/features/schemas/pages/schema/schema-page.component.html
  2. 6
      src/Squidex/app/features/schemas/pages/schema/schema-preview-urls-form.component.html
  3. 5
      src/Squidex/app/features/schemas/pages/schema/schema-preview-urls-form.component.ts
  4. 3
      src/Squidex/app/framework/angular/forms/code-editor.component.ts

4
src/Squidex/app/features/schemas/pages/schema/schema-page.component.html

@ -25,10 +25,10 @@
</button>
<div class="dropdown-menu" *sqxModalView="editOptionsDropdown;closeAlways:true" [sqxModalTarget]="buttonOptions" @fade>
<a class="dropdown-item" (click)="configureScriptsDialog.show()">
Configure Scripts
Scripts
</a>
<a class="dropdown-item" (click)="configurePreviewUrlsDialog.show()">
Configure Preview Urls
Preview Urls
</a>
<ng-container *ngIf="schemasState.canCreate">

6
src/Squidex/app/features/schemas/pages/schema/schema-preview-urls-form.component.html

@ -6,7 +6,7 @@
<ng-container content>
<sqx-form-hint>
Adding a preview url generates a link in the content editor, referring to your custom preview environment where the content item is used.
Adding a preview url generates a link in the content editor, referring to your custom preview or production environment where the content item is used.
</sqx-form-hint>
<sqx-form-hint>
@ -14,6 +14,10 @@
</sqx-form-hint>
<div class="content">
<div class="mt-4" *ngIf="!isEditable && editForm.form.controls.length === 0">
No preview urls configured.
</div>
<div class="form-group row no-gutters" *ngFor="let form of editForm.form.controls; let i = index">
<div class="col col-name pr-1">
<sqx-control-errors [for]="form.get('name')" fieldName="Name" [submitted]="editForm.submitted | async"></sqx-control-errors>

5
src/Squidex/app/features/schemas/pages/schema/schema-preview-urls-form.component.ts

@ -43,10 +43,7 @@ export class SchemaPreviewUrlsFormComponent implements OnInit {
this.isEditable = this.schema.canUpdateUrls;
this.editForm.load(this.schema.previewUrls);
if (!this.isEditable) {
return;
}
this.editForm.setEnabled(this.isEditable);
}
public emitComplete() {

3
src/Squidex/app/framework/angular/forms/code-editor.component.ts

@ -64,8 +64,7 @@ export class CodeEditorComponent extends StatefulControlComponent<any, string> i
}
public ngAfterViewInit() {
this.valueChanged.pipe(
debounceTime(500))
this.valueChanged.pipe(debounceTime(500))
.subscribe(() => {
this.changeValue();
});

Loading…
Cancel
Save