|
19 | 19 | <div class="scroll-container"> |
20 | 20 | <div class="row mb-2"> |
21 | 21 | <div class="col-12 flex-row d-flex justify-content-end"> |
22 | | - <button |
23 | | - [disabled]="!command.name" |
24 | | - class="btn btn-outline-secondary mr-2 dropdown-toggle" |
25 | | - data-toggle="dropdown" |
26 | | - data-offset="0,0" |
27 | | - aria-haspopup="true" |
28 | | - aria-expanded="false" |
29 | | - [title]="'ui.commandEditor.copyFromHint' | translate" |
30 | | - > |
31 | | - {{ "ui.commandEditor.copyFrom" | translate }} |
32 | | - </button> |
33 | | - <div class="dropdown-menu"> |
34 | | - <span |
35 | | - class="dropdown-item" |
36 | | - *ngFor="let target of games" |
37 | | - (click)="copyFromCommand(target)" |
38 | | - >{{ target | gameTitle }}</span |
| 22 | + <div> |
| 23 | + <button |
| 24 | + [disabled]="!command.name" |
| 25 | + class="btn btn-outline-secondary mr-2 dropdown-toggle" |
| 26 | + data-toggle="dropdown" |
| 27 | + data-offset="0,0" |
| 28 | + aria-haspopup="true" |
| 29 | + aria-expanded="false" |
| 30 | + [title]="'ui.commandEditor.copyFromHint' | translate" |
39 | 31 | > |
| 32 | + {{ "ui.commandEditor.copyFrom" | translate }} |
| 33 | + </button> |
| 34 | + <div class="dropdown-menu"> |
| 35 | + <span |
| 36 | + class="dropdown-item" |
| 37 | + *ngFor="let target of games" |
| 38 | + (click)="copyFromCommand(target)" |
| 39 | + >{{ target | gameTitle }}</span |
| 40 | + > |
| 41 | + </div> |
40 | 42 | </div> |
41 | | - <button |
42 | | - *ngIf="canClone()" |
43 | | - [disabled]="isInvalid" |
44 | | - class="btn btn-outline-secondary mr-2 dropdown-toggle" |
45 | | - data-toggle="dropdown" |
46 | | - data-offset="0,0" |
47 | | - aria-haspopup="true" |
48 | | - aria-expanded="false" |
49 | | - > |
50 | | - {{ "ui.shared.clone" | translate }} |
51 | | - </button> |
52 | | - <div class="dropdown-menu"> |
53 | | - <span |
54 | | - class="dropdown-item" |
55 | | - *ngFor="let target of cloneTargets" |
56 | | - (click)="cloneCommand(target)" |
57 | | - >{{ target | gameTitle }}</span |
| 43 | + |
| 44 | + <div> |
| 45 | + <button |
| 46 | + *ngIf="canClone()" |
| 47 | + [disabled]="isInvalid" |
| 48 | + class="btn btn-outline-secondary mr-2 dropdown-toggle" |
| 49 | + data-toggle="dropdown" |
| 50 | + data-offset="0,0" |
| 51 | + aria-haspopup="true" |
| 52 | + aria-expanded="false" |
58 | 53 | > |
| 54 | + {{ "ui.shared.clone" | translate }} |
| 55 | + </button> |
| 56 | + <div class="dropdown-menu"> |
| 57 | + <span |
| 58 | + class="dropdown-item" |
| 59 | + *ngFor="let target of cloneTargets" |
| 60 | + (click)="cloneCommand(target)" |
| 61 | + >{{ target | gameTitle }}</span |
| 62 | + > |
| 63 | + </div> |
59 | 64 | </div> |
60 | | - <button |
61 | | - class="btn btn-outline-secondary text-nowrap" |
62 | | - (click)="addInput()" |
63 | | - > |
64 | | - {{ "ui.commandEditor.addInput" | translate }} |
65 | | - </button> |
66 | 65 | <scl-icon-button |
67 | 66 | class="ml-3 text-danger" |
68 | 67 | icon="delete" |
@@ -284,14 +283,37 @@ <h5> |
284 | 283 | </div> |
285 | 284 |
|
286 | 285 | <ng-container cdkDropListGroup> |
| 286 | + <div |
| 287 | + class="flex-row d-flex align-items-center justify-content-between mb-2" |
| 288 | + > |
| 289 | + <h5>{{ "ui.commandEditor.paramsSubtitle" | translate }}</h5> |
| 290 | + <button |
| 291 | + class="btn btn-outline-secondary text-nowrap" |
| 292 | + (click)="addInput()" |
| 293 | + [title]="'ui.commandEditor.addInput' | translate" |
| 294 | + > |
| 295 | + <svg |
| 296 | + style="margin-top: -3px" |
| 297 | + xmlns="http://www.w3.org/2000/svg" |
| 298 | + width="16" |
| 299 | + height="16" |
| 300 | + fill="currentColor" |
| 301 | + class="bi bi-plus" |
| 302 | + viewBox="0 0 16 16" |
| 303 | + > |
| 304 | + <path |
| 305 | + d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" |
| 306 | + /> |
| 307 | + </svg> |
| 308 | + {{ "ui.layout.new" | translate }} |
| 309 | + </button> |
| 310 | + </div> |
287 | 311 | <div |
288 | 312 | cdkDropList |
289 | 313 | [cdkDropListData]="command.input" |
290 | 314 | [ngClass]="{ 'empty-list': !command.input?.length }" |
291 | 315 | (cdkDropListDropped)="drop($event, SourceType.any)" |
292 | 316 | > |
293 | | - <h5>{{ "ui.commandEditor.paramsSubtitle" | translate }}</h5> |
294 | | - |
295 | 317 | <div |
296 | 318 | *ngFor="let param of command.input; let i = index" |
297 | 319 | cdkDrag |
@@ -366,13 +388,37 @@ <h5>{{ "ui.commandEditor.paramsSubtitle" | translate }}</h5> |
366 | 388 | </div> |
367 | 389 | </div> |
368 | 390 |
|
| 391 | + <div |
| 392 | + class="flex-row d-flex align-items-center justify-content-between mb-2" |
| 393 | + > |
| 394 | + <h5>{{ "ui.commandEditor.resultSubtitle" | translate }}</h5> |
| 395 | + <button |
| 396 | + class="btn btn-outline-secondary text-nowrap" |
| 397 | + (click)="addOutput()" |
| 398 | + [title]="'ui.commandEditor.addOutput' | translate" |
| 399 | + > |
| 400 | + <svg |
| 401 | + style="margin-top: -3px" |
| 402 | + xmlns="http://www.w3.org/2000/svg" |
| 403 | + width="16" |
| 404 | + height="16" |
| 405 | + fill="currentColor" |
| 406 | + class="bi bi-plus" |
| 407 | + viewBox="0 0 16 16" |
| 408 | + > |
| 409 | + <path |
| 410 | + d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" |
| 411 | + /> |
| 412 | + </svg> |
| 413 | + {{ "ui.layout.new" | translate }} |
| 414 | + </button> |
| 415 | + </div> |
369 | 416 | <div |
370 | 417 | cdkDropList |
371 | 418 | [cdkDropListData]="command.output" |
372 | 419 | [ngClass]="{ 'empty-list': !command.output?.length }" |
373 | 420 | (cdkDropListDropped)="drop($event, SourceType.var_any)" |
374 | 421 | > |
375 | | - <h5>{{ "ui.commandEditor.resultSubtitle" | translate }}</h5> |
376 | 422 | <div |
377 | 423 | *ngFor="let param of command.output; let i = index" |
378 | 424 | cdkDrag |
|
578 | 624 | </div> |
579 | 625 | <div |
580 | 626 | class="full-description" |
581 | | - [innerHTML]=" |
582 | | - fullDescription[0] | markdown | sanitize |
583 | | - " |
| 627 | + [innerHTML]="fullDescription[0] | markdown | sanitize" |
584 | 628 | ></div> |
585 | 629 | </div> |
586 | 630 | </div> |
|
0 commit comments