discourse/app/assets/javascripts/admin/addon/templates/components/composer-fullscreen-prompt.hbs
David Taylor e4fbb3be21
DEV: Update composer-fullscreen-prompt to template-only component (#17871)
1. Replace `{{did-insert` with the builtin `{{on` modifier
2. Move the i18n call into the template

With both of those changes, there is no logic left in the backing class, so we can switch to `templateOnly()` which is significantly faster. (granted, not a big deal for a component like this, but it makes for a good demonstration)
2022-08-12 10:43:38 +08:00

4 lines
155 B
Handlebars

<div class="composer-fullscreen-prompt" {{on "animationend" @removeFullScreenExitPrompt}}>
{{html-safe (i18n "composer.exit_fullscreen_prompt")}}
</div>