Skip to content

Commit

Permalink
Changes the text of the note in the "Add Knowledge Base" dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Oct 3, 2023
1 parent 332a74b commit a3376d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/app/knowledge-bases/knowledge-bases.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ <h4 class="modal-title">
<span class="input-label">URL</span>
<input type="url" name="url" class="custom-input" [(ngModel)]="newKb.url" formControlName="url"
placeholder="{{ 'KbPage.TypeKbUrlPlaceholder' | translate }}" (input)="onChangeInput($event)"
style="margin-bottom: 3px;"
[class.invalid]="(kbForm.controls.url.errors?.pattern || kbForm.controls.url.errors?.required) && kbForm.controls.url.touched">
</div>
<span class="input--note">{{ 'KbPage.YouCanAddKBOfUpTo200Pages' | translate }}</span>
</div>

<!-- <div class="input-container">
<span class="input-label">GPT Key</span>
Expand Down
7 changes: 6 additions & 1 deletion src/app/knowledge-bases/knowledge-bases.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
padding: 12px 15px;
border-radius: 4px;
background-color: #d7ebfa6e;

font-weight: 400;
.info-icon {
margin-right: 8px;
font-size: 20px;
Expand Down Expand Up @@ -394,4 +394,9 @@ table {

.bold {
font-weight: 500;
}

.input--note {
font-size: 12px;
font-weight: 400;
}
2 changes: 1 addition & 1 deletion src/app/knowledge-bases/knowledge-bases.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class KnowledgeBasesComponent implements OnInit {

this.searching = true;
this.show_answer = false;

this.error_answer = false;
this.answer = null;
this.source_url = null;

Expand Down

0 comments on commit a3376d7

Please sign in to comment.