discourse/app/assets/javascripts/admin/addon/templates/plugins-show-settings.hbs
Jarek Radosz ae79ba1447
DEV: Simplify breadcrumbs by using path arg (#27744)
Example:

```hbs
<DBreadcrumbItem
  @path="/admin/plugins/{{@plugin.name}}"
  @label={{@plugin.nameTitleized}}
/>
```

Using `@path` instead of `@route`+`@model` combo makes it impossible to pass temporarily unresolvable routes.

This fixes a bug with navigating from a model-based route to a parent route.
2024-07-08 17:55:03 +02:00

15 lines
421 B
Handlebars

<DBreadcrumbsItem
@path="/admin/plugins/{{@model.plugin.name}}/settings"
@label={{i18n "admin.plugins.change_settings_short"}}
/>
<div
class="content-body admin-plugin-config-area__settings admin-detail pull-left"
>
<AdminPluginFilteredSiteSettings
@initialFilter={{@model.initialFilter}}
@plugin={{@model.plugin}}
@settings={{@model.settings}}
@onFilterChanged={{this.filterChanged}}
/>
</div>