-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV: Update modal to component API (#269)
<img width="622" alt="Screenshot 2023-12-06 at 12 10 09 PM" src="https://github.com/discourse/discourse-data-explorer/assets/50783505/5a6fb0b2-829c-4af3-93c9-91676b78ab59">
- Loading branch information
1 parent
ac7df5e
commit 3dd5ad0
Showing
3 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
assets/javascripts/discourse/components/modal/query-help.gjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import DModal from "discourse/components/d-modal"; | ||
import htmlSafe from "discourse-common/helpers/html-safe"; | ||
import i18n from "discourse-common/helpers/i18n"; | ||
|
||
const QueryHelp = <template> | ||
<DModal | ||
@title={{i18n "explorer.help.modal_title"}} | ||
@closeModal={{@closeModal}} | ||
> | ||
<:body> | ||
{{htmlSafe (i18n "explorer.help.auto_resolution")}} | ||
{{htmlSafe (i18n "explorer.help.custom_params")}} | ||
{{htmlSafe (i18n "explorer.help.default_values")}} | ||
{{htmlSafe (i18n "explorer.help.data_types")}} | ||
</:body> | ||
</DModal> | ||
</template>; | ||
|
||
export default QueryHelp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.