Browse Source

Merge pull request #317 from dsbegnoche/patch-4

Save Query box fixes
pull/320/head
Sebastian Stehle 7 years ago
committed by GitHub
parent
commit
ada8fdb0da
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Squidex/app/shared/components/search-form.component.html
  2. 3
      src/Squidex/app/shared/components/search-form.component.ts

4
src/Squidex/app/shared/components/search-form.component.html

@ -91,9 +91,9 @@
</ng-container>
<ng-container footer>
<button type="reset" class="float-left btn btn-secondary" (click)="saveQueryComplete()" [disabled]="saveQueryForm.submitted | async">Cancel</button>
<button type="reset" class="float-left btn btn-secondary" (click)="saveQueryDialog.hide()" [disabled]="saveQueryForm.submitted | async">Cancel</button>
<button type="submit" class="float-right btn btn-success">Create</button>
</ng-container>
</sqx-modal-dialog>
</form>
</ng-container>
</ng-container>

3
src/Squidex/app/shared/components/search-form.component.ts

@ -90,6 +90,7 @@ export class SearchFormComponent implements OnChanges, OnInit {
}
public saveQuery() {
this.saveQueryForm.submitCompleted({});
this.saveQueryDialog.show();
}
@ -186,4 +187,4 @@ export class SearchFormComponent implements OnChanges, OnInit {
this.contentsFilter.setValue(query);
}
}
}

Loading…
Cancel
Save