mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:43:43 +08:00
5fc93b95cc
This commit contains a few improvements: * Use LinkTo instead of a button with a weird action referencing the controller to navigate to the filtered settings for a plugin * Add an AdminPlugin model with tracked properties and use that when toggling the setting on/off and in the templates * Make it so the Settings button for a plugin navigates to the correct site setting category instead of always just going to the generic "plugins" one if possible
12 lines
242 B
JavaScript
12 lines
242 B
JavaScript
import Component from "@glimmer/component";
|
|
|
|
export default class PluginCommitHash extends Component {
|
|
get shortCommitHash() {
|
|
return this.commitHash?.slice(0, 7);
|
|
}
|
|
|
|
get commitHash() {
|
|
return this.args.plugin.commitHash;
|
|
}
|
|
}
|