mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
19 lines
598 B
Text
19 lines
598 B
Text
import Component from "@glimmer/component";
|
|
import { service } from "@ember/service";
|
|
import loadingSpinner from "discourse/helpers/loading-spinner";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class AiImageCaptionLoader extends Component {
|
|
@service imageCaptionPopup;
|
|
|
|
<template>
|
|
{{#if this.imageCaptionPopup.showAutoCaptionLoader}}
|
|
<div class="auto-image-caption-loader">
|
|
{{loadingSpinner size="small"}}
|
|
<span>{{i18n
|
|
"discourse_ai.ai_helper.image_caption.automatic_caption_loading"
|
|
}}</span>
|
|
</div>
|
|
{{/if}}
|
|
</template>
|
|
}
|