DEV: Update more deprecated Font Awesome icon names (#1005)
* DEV: Update more deprecated Font Awesome icon names * update to trash-can
This commit is contained in:
parent
70fae2b699
commit
5e87a50202
|
@ -69,7 +69,7 @@ class ReviewableAiChatMessage < Reviewable
|
||||||
|
|
||||||
build_action(actions, :ignore, icon: "external-link-alt")
|
build_action(actions, :ignore, icon: "external-link-alt")
|
||||||
|
|
||||||
build_action(actions, :delete_and_agree, icon: "far-trash-alt") unless chat_message.deleted_at?
|
build_action(actions, :delete_and_agree, icon: "far-trash-can") unless chat_message.deleted_at?
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform_agree_and_keep_message(performed_by, args)
|
def perform_agree_and_keep_message(performed_by, args)
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ReviewableAiPost < Reviewable
|
||||||
delete =
|
delete =
|
||||||
actions.add_bundle(
|
actions.add_bundle(
|
||||||
"#{id}-delete",
|
"#{id}-delete",
|
||||||
icon: "far-trash-alt",
|
icon: "far-trash-can",
|
||||||
label: "reviewables.actions.delete.title",
|
label: "reviewables.actions.delete.title",
|
||||||
)
|
)
|
||||||
build_action(actions, :delete_and_ignore, icon: "external-link-alt", bundle: delete)
|
build_action(actions, :delete_and_ignore, icon: "external-link-alt", bundle: delete)
|
||||||
|
|
|
@ -8,7 +8,7 @@ const AiHelperLoading = <template>
|
||||||
{{i18n "discourse_ai.ai_helper.context_menu.loading"}}
|
{{i18n "discourse_ai.ai_helper.context_menu.loading"}}
|
||||||
</span>
|
</span>
|
||||||
<DButton
|
<DButton
|
||||||
@icon="times"
|
@icon="xmark"
|
||||||
@title="discourse_ai.ai_helper.context_menu.cancel"
|
@title="discourse_ai.ai_helper.context_menu.cancel"
|
||||||
@action={{@cancel}}
|
@action={{@cancel}}
|
||||||
class="btn-flat cancel-request"
|
class="btn-flat cancel-request"
|
||||||
|
|
|
@ -201,7 +201,7 @@ export default class AiLlmEditorForm extends Component {
|
||||||
disabled={{this.seeded}}
|
disabled={{this.seeded}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{i18n "discourse_ai.llms.hints.name"}}
|
@content={{i18n "discourse_ai.llms.hints.name"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -280,7 +280,7 @@ export default class AiLlmEditorForm extends Component {
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{i18n "discourse_ai.llms.hints.max_prompt_tokens"}}
|
@content={{i18n "discourse_ai.llms.hints.max_prompt_tokens"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -288,7 +288,7 @@ export default class AiLlmEditorForm extends Component {
|
||||||
<Input @type="checkbox" @checked={{@model.vision_enabled}} />
|
<Input @type="checkbox" @checked={{@model.vision_enabled}} />
|
||||||
<label>{{i18n "discourse_ai.llms.vision_enabled"}}</label>
|
<label>{{i18n "discourse_ai.llms.vision_enabled"}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{i18n "discourse_ai.llms.hints.vision_enabled"}}
|
@content={{i18n "discourse_ai.llms.hints.vision_enabled"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -296,7 +296,7 @@ export default class AiLlmEditorForm extends Component {
|
||||||
<Input @type="checkbox" @checked={{@model.enabled_chat_bot}} />
|
<Input @type="checkbox" @checked={{@model.enabled_chat_bot}} />
|
||||||
<label>{{i18n "discourse_ai.llms.enabled_chat_bot"}}</label>
|
<label>{{i18n "discourse_ai.llms.enabled_chat_bot"}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{i18n "discourse_ai.llms.hints.enabled_chat_bot"}}
|
@content={{i18n "discourse_ai.llms.hints.enabled_chat_bot"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -315,7 +315,7 @@ export default class PersonaEditor extends Component {
|
||||||
{{on "click" this.togglePriority}}
|
{{on "click" this.togglePriority}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.priority_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.priority_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -345,7 +345,7 @@ export default class PersonaEditor extends Component {
|
||||||
@llms={{@personas.resultSetMeta.llms}}
|
@llms={{@personas.resultSetMeta.llms}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.default_llm_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.default_llm_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -382,7 +382,7 @@ export default class PersonaEditor extends Component {
|
||||||
{{I18n.t "discourse_ai.ai_persona.create_user"}}
|
{{I18n.t "discourse_ai.ai_persona.create_user"}}
|
||||||
</DButton>
|
</DButton>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.create_user_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.create_user_help"}}
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -453,7 +453,7 @@ export default class PersonaEditor extends Component {
|
||||||
/>
|
/>
|
||||||
{{I18n.t "discourse_ai.ai_persona.allow_personal_messages"}}</label>
|
{{I18n.t "discourse_ai.ai_persona.allow_personal_messages"}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.ai_persona.allow_personal_messages_help"
|
"discourse_ai.ai_persona.allow_personal_messages_help"
|
||||||
}}
|
}}
|
||||||
|
@ -468,7 +468,7 @@ export default class PersonaEditor extends Component {
|
||||||
/>
|
/>
|
||||||
{{I18n.t "discourse_ai.ai_persona.allow_topic_mentions"}}</label>
|
{{I18n.t "discourse_ai.ai_persona.allow_topic_mentions"}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.ai_persona.allow_topic_mentions_help"
|
"discourse_ai.ai_persona.allow_topic_mentions_help"
|
||||||
}}
|
}}
|
||||||
|
@ -487,7 +487,7 @@ export default class PersonaEditor extends Component {
|
||||||
"discourse_ai.ai_persona.allow_chat_direct_messages"
|
"discourse_ai.ai_persona.allow_chat_direct_messages"
|
||||||
}}</label>
|
}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.ai_persona.allow_chat_direct_messages_help"
|
"discourse_ai.ai_persona.allow_chat_direct_messages_help"
|
||||||
}}
|
}}
|
||||||
|
@ -505,7 +505,7 @@ export default class PersonaEditor extends Component {
|
||||||
"discourse_ai.ai_persona.allow_chat_channel_mentions"
|
"discourse_ai.ai_persona.allow_chat_channel_mentions"
|
||||||
}}</label>
|
}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.ai_persona.allow_chat_channel_mentions_help"
|
"discourse_ai.ai_persona.allow_chat_channel_mentions_help"
|
||||||
}}
|
}}
|
||||||
|
@ -518,7 +518,7 @@ export default class PersonaEditor extends Component {
|
||||||
<Input @type="checkbox" @checked={{this.editingModel.tool_details}} />
|
<Input @type="checkbox" @checked={{this.editingModel.tool_details}} />
|
||||||
{{I18n.t "discourse_ai.ai_persona.tool_details"}}</label>
|
{{I18n.t "discourse_ai.ai_persona.tool_details"}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.tool_details_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.tool_details_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -530,7 +530,7 @@ export default class PersonaEditor extends Component {
|
||||||
/>
|
/>
|
||||||
{{I18n.t "discourse_ai.ai_persona.vision_enabled"}}</label>
|
{{I18n.t "discourse_ai.ai_persona.vision_enabled"}}</label>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.vision_enabled_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.vision_enabled_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -553,7 +553,7 @@ export default class PersonaEditor extends Component {
|
||||||
@value={{this.editingModel.max_context_posts}}
|
@value={{this.editingModel.max_context_posts}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.max_context_posts_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.max_context_posts_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -569,7 +569,7 @@ export default class PersonaEditor extends Component {
|
||||||
disabled={{this.editingModel.system}}
|
disabled={{this.editingModel.system}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.temperature_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.temperature_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -586,7 +586,7 @@ export default class PersonaEditor extends Component {
|
||||||
disabled={{this.editingModel.system}}
|
disabled={{this.editingModel.system}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.ai_persona.top_p_help"}}
|
@content={{I18n.t "discourse_ai.ai_persona.top_p_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -612,7 +612,7 @@ export default class PersonaEditor extends Component {
|
||||||
@value={{this.editingModel.rag_conversation_chunks}}
|
@value={{this.editingModel.rag_conversation_chunks}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.ai_persona.rag_conversation_chunks_help"
|
"discourse_ai.ai_persona.rag_conversation_chunks_help"
|
||||||
}}
|
}}
|
||||||
|
@ -629,7 +629,7 @@ export default class PersonaEditor extends Component {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.ai_persona.question_consolidator_llm_help"
|
"discourse_ai.ai_persona.question_consolidator_llm_help"
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -337,7 +337,7 @@ export default class AiPostHelperMenu extends Component {
|
||||||
</div>
|
</div>
|
||||||
<div class="ai-post-helper__suggestion__buttons">
|
<div class="ai-post-helper__suggestion__buttons">
|
||||||
<DButton
|
<DButton
|
||||||
@icon="times"
|
@icon="xmark"
|
||||||
@label="discourse_ai.ai_helper.post_options_menu.cancel"
|
@label="discourse_ai.ai_helper.post_options_menu.cancel"
|
||||||
@action={{this.cancelAiAction}}
|
@action={{this.cancelAiAction}}
|
||||||
class="btn-flat ai-post-helper__suggestion__cancel"
|
class="btn-flat ai-post-helper__suggestion__cancel"
|
||||||
|
|
|
@ -173,7 +173,7 @@ export default class AiToolEditor extends Component {
|
||||||
class="ai-tool-editor__name"
|
class="ai-tool-editor__name"
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.tools.name_help"}}
|
@content={{I18n.t "discourse_ai.tools.name_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -199,7 +199,7 @@ export default class AiToolEditor extends Component {
|
||||||
class="ai-tool-editor__summary input-xxlarge"
|
class="ai-tool-editor__summary input-xxlarge"
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.tools.summary_help"}}
|
@content={{I18n.t "discourse_ai.tools.summary_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -113,7 +113,7 @@ export default class AiToolParameterEditor extends Component {
|
||||||
|
|
||||||
<DButton
|
<DButton
|
||||||
@action={{fn this.removeParameter parameter}}
|
@action={{fn this.removeParameter parameter}}
|
||||||
@icon="trash-alt"
|
@icon="trash-can"
|
||||||
class="btn-danger"
|
class="btn-danger"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -130,7 +130,7 @@ export default class AiToolParameterEditor extends Component {
|
||||||
/>
|
/>
|
||||||
<DButton
|
<DButton
|
||||||
@action={{fn this.removeEnumValue parameter enumIndex}}
|
@action={{fn this.removeEnumValue parameter enumIndex}}
|
||||||
@icon="trash-alt"
|
@icon="trash-can"
|
||||||
class="btn-danger"
|
class="btn-danger"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -260,7 +260,7 @@ export default class AiSummaryModal extends Component {
|
||||||
@label="summary.buttons.regenerate"
|
@label="summary.buttons.regenerate"
|
||||||
@title="summary.buttons.regenerate"
|
@title="summary.buttons.regenerate"
|
||||||
@action={{this.regenerateSummary}}
|
@action={{this.regenerateSummary}}
|
||||||
@icon="sync"
|
@icon="arrows-rotate"
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</:footer>
|
</:footer>
|
||||||
|
|
|
@ -110,7 +110,7 @@ export default class ShareModal extends Component {
|
||||||
{{#if this.shareKey}}
|
{{#if this.shareKey}}
|
||||||
<DButton
|
<DButton
|
||||||
class="btn-danger"
|
class="btn-danger"
|
||||||
@icon="far-trash-alt"
|
@icon="far-trash-can"
|
||||||
@action={{this.deleteLink}}
|
@action={{this.deleteLink}}
|
||||||
@label="discourse_ai.ai_bot.share_full_topic_modal.delete"
|
@label="discourse_ai.ai_bot.share_full_topic_modal.delete"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default class RagOptions extends Component {
|
||||||
@value={{@model.rag_chunk_tokens}}
|
@value={{@model.rag_chunk_tokens}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t "discourse_ai.rag.options.rag_chunk_tokens_help"}}
|
@content={{I18n.t "discourse_ai.rag.options.rag_chunk_tokens_help"}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -58,7 +58,7 @@ export default class RagOptions extends Component {
|
||||||
@value={{@model.rag_chunk_overlap_tokens}}
|
@value={{@model.rag_chunk_overlap_tokens}}
|
||||||
/>
|
/>
|
||||||
<DTooltip
|
<DTooltip
|
||||||
@icon="question-circle"
|
@icon="circle-question"
|
||||||
@content={{I18n.t
|
@content={{I18n.t
|
||||||
"discourse_ai.rag.options.rag_chunk_overlap_tokens_help"
|
"discourse_ai.rag.options.rag_chunk_overlap_tokens_help"
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -149,7 +149,7 @@ export default class RagUploader extends Component {
|
||||||
/>
|
/>
|
||||||
<td class="rag-uploader__remove-file">
|
<td class="rag-uploader__remove-file">
|
||||||
<DButton
|
<DButton
|
||||||
@icon="times"
|
@icon="xmark"
|
||||||
@title="discourse_ai.rag.uploads.remove"
|
@title="discourse_ai.rag.uploads.remove"
|
||||||
@action={{fn this.removeUpload upload}}
|
@action={{fn this.removeUpload upload}}
|
||||||
class="btn-flat"
|
class="btn-flat"
|
||||||
|
@ -170,7 +170,7 @@ export default class RagUploader extends Component {
|
||||||
</td>
|
</td>
|
||||||
<td class="rag-uploader__remove-file">
|
<td class="rag-uploader__remove-file">
|
||||||
<DButton
|
<DButton
|
||||||
@icon="times"
|
@icon="xmark"
|
||||||
@title="discourse_ai.rag.uploads.remove"
|
@title="discourse_ai.rag.uploads.remove"
|
||||||
@action={{fn this.cancelUploading upload}}
|
@action={{fn this.cancelUploading upload}}
|
||||||
class="btn-flat"
|
class="btn-flat"
|
||||||
|
|
Loading…
Reference in New Issue