discourse/app/assets/javascripts/admin/addon/templates/config-customize-themes.gjs
Ted Johansson 1fcb3a8b33
DEV: Port install theme button modal to new themes page (#32834)
We recently added a new themes and components page. We didn't port over the code that enables the Install theme button on Meta. It works by looking for certain query parameters and opening a special version of the install modal.

This PR is a lift-and-shift of that code from the old themes page.
2025-05-22 17:24:37 +08:00

20 lines
634 B
Text
Vendored

import RouteTemplate from "ember-route-template";
import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item";
import { i18n } from "discourse-i18n";
import Themes from "admin/components/admin-config-areas/themes";
export default RouteTemplate(
<template>
<DBreadcrumbsItem
@path="/admin/config/customize/themes"
@label={{i18n "admin.config_areas.themes_and_components.themes.title"}}
/>
<Themes
@repoUrl={{@controller.model.repoUrl}}
@repoName={{@controller.model.repoName}}
@themes={{@controller.model.themes}}
@clearParams={{this.clearParams}}
/>
</template>
);