-
-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathquery-output.component.html
More file actions
65 lines (65 loc) · 2.46 KB
/
query-output.component.html
File metadata and controls
65 lines (65 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@if (editorService) {
<div class="row">
<div class="col">
<span [hidden]="!editorService.isNew" class="badge badge-primary">CREATING NEW</span>
<div class="query-type-switch" [hidden]="editorService.isNew">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" id="diff-query-input" [(ngModel)]="selectedQuery" [value]="'diff'" />
<label class="form-check-label" for="diff-query-input">Diff-query</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" id="full-query-input" [(ngModel)]="selectedQuery" [value]="'full'" />
<label class="form-check-label" for="full-query-input">Full-query</label>
</div>
</div>
</div>
<div class="col">
@if (docUrl) {
<div class="wiki-link mb-2">
<a [href]="docUrl" target="_blank"> <i class="fas fa-link"></i> {{ editorService.entityTable }} documentation </a>
</div>
}
</div>
</div>
<keira-highlightjs-wrapper id="diff-query" [code]="editorService.diffQuery" [hidden]="showFullQuery()" />
<keira-highlightjs-wrapper id="full-query" [code]="editorService.fullQuery" [hidden]="!showFullQuery()" />
<div>
<button
type="button"
class="btn btn-secondary btn-sm"
(click)="copy()"
id="copy-btn"
[disabled]="(validationService.validationPassed$ | async) === false"
>
<i class="fa fa-copy fa-sm"></i> {{ 'COPY' | translate }}
</button>
<button
type="button"
class="btn btn-primary btn-sm"
(click)="execute()"
id="execute-btn"
[disabled]="(validationService.validationPassed$ | async) === false"
>
<i class="fa fa-bolt fa-sm"></i> {{ 'EXECUTE' | translate }}
</button>
<button
type="button"
class="btn btn-success btn-sm"
(click)="copy(); execute()"
id="execute-and-copy-btn"
[disabled]="(validationService.validationPassed$ | async) === false"
>
<i class="fa fa-bolt fa-sm"></i> {{ 'EXECUTE_AND_COPY' | translate }} <i class="fa fa-copy fa-sm"></i>
</button>
<button
type="button"
class="btn btn-danger btn-sm float-end"
(click)="reload()"
id="reload-btn"
[disabled]="(validationService.validationPassed$ | async) === false"
>
<i class="fa fa-sync fa-sm"></i> {{ 'RELOAD' | translate }}
</button>
</div>
<keira-query-error [error]="editorService.error" />
}