-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b11b43
commit 6fefa45
Showing
24 changed files
with
426 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 24 additions & 25 deletions
49
...b/libs/block-editor/src/lib/extensions/ai-content-prompt/ai-content-prompt.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
<form | ||
id="ai-text-prompt" | ||
*ngIf="form" | ||
[formGroup]="form" | ||
(ngSubmit)="onSubmit()" | ||
autocomplete="off"> | ||
<span class="p-input-icon-right"> | ||
<input | ||
#input | ||
formControlName="textPrompt" | ||
type="text" | ||
pInputText | ||
placeholder="Ask AI to write something" /> | ||
<ng-container *ngIf="vm$ | async as vm"> | ||
<form id="ai-text-prompt" [formGroup]="form" (ngSubmit)="onSubmit()" autocomplete="off"> | ||
<span class="p-input-icon-right"> | ||
<input | ||
#input | ||
[disabled]="vm.loading" | ||
formControlName="textPrompt" | ||
type="text" | ||
pInputText | ||
autofocus | ||
placeholder="Ask AI to write something" /> | ||
|
||
<ng-container *ngIf="isFormSubmitting; else submitButton"> | ||
<span class="pending-label">Pending</span> | ||
</ng-container> | ||
<ng-container *ngIf="vm.loading; else submitButton"> | ||
<span class="pending-label">Pending</span> | ||
</ng-container> | ||
|
||
<ng-template #submitButton> | ||
<button | ||
class="p-button-rounded p-button-text" | ||
pButton | ||
type="submit" | ||
icon="pi pi-send"></button> | ||
</ng-template> | ||
</span> | ||
</form> | ||
<ng-template #submitButton> | ||
<button | ||
class="p-button-rounded p-button-text" | ||
pButton | ||
type="submit" | ||
icon="pi pi-send"></button> | ||
</ng-template> | ||
</span> | ||
</form> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.