Skip to content

Commit

Permalink
feat(ai-hub): changes without error
Browse files Browse the repository at this point in the history
  • Loading branch information
alacerdah committed Feb 1, 2024
1 parent 0a7bc24 commit e0cc644
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
15 changes: 12 additions & 3 deletions src/components/blipTags/blipTags.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,18 @@ class BlipTagsController extends ComponentController
} else {
this.createBlipTagsInstance();

this.blipTagsInstance.blipSelectInstance.configOptions.disabled = this.disabled;
this.blipTagsInstance.tagsOptions.canAddOptions = changesObj.canAddOptions.currentValue;
this.blipTagsInstance.tagsOptions.canRemoveTags = changesObj.canRemoveTags.currentValue;
const canRemoveTagsValue = changesObj.canRemoveTags;
const canAddOptionsValue = changesObj.canAddOptions;

this.blipTagsInstance.render({
blipSelectInstance: {
configOptions: {
disabled: this.disabled
}
}
});
this.blipTagsInstance.tagsOptions.canAddOptions = canAddOptionsValue;
this.blipTagsInstance.tagsOptions.canRemoveTags = canRemoveTagsValue;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/pageHelp/PageHelpView.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<span>{{$ctrl.body}}</span>
<div class="mt3 flex flex-row items-center">
<a class="mr3" ng-click="$ctrl.close()">{{$ctrl.helpConfirm}}</a>
<a href="{{$ctrl.docLink.link}}" target="blank">{{$ctrl.docLink.text}} <i class='icon-external-link'></i></a>
<a href="{{$ctrl.docLink.link}}" target="blank" translate>modules.application.detail.ai.intentions.helperLink.title<i class='icon-external-link'></i></a>
</div>
</div>
<div class="image ml3">
Expand Down
4 changes: 0 additions & 4 deletions src/components/pageHelp/pageHelp.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ class PageHelp {

async setDocLink() {
if (!this.docLink) {
const text = await this.$translate(
'modules.application.detail.ai.intentions.helperLink.title',
);
this.docLink = {
text,
link: 'https://help.blip.ai/hc/pt-br',
};
}
Expand Down

0 comments on commit e0cc644

Please sign in to comment.