mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 13:55:59 +08:00
d2502c9a79
# Before <img width="575" alt="Screenshot 2023-08-03 at 1 35 47 PM" src="https://github.com/discourse/discourse/assets/50783505/b4ae1487-bef8-40d4-8949-902e36303d43"> # After <img width="897" alt="Screenshot 2023-08-03 at 1 41 21 PM" src="https://github.com/discourse/discourse/assets/50783505/a37c5fe1-eee5-4e0a-8b0a-66aebbaf2342"> This modal could still use some design love. I will raise this internally.
22 lines
515 B
JavaScript
22 lines
515 B
JavaScript
import Component from "@glimmer/component";
|
|
import { tracked } from "@glimmer/tracking";
|
|
import { action } from "@ember/object";
|
|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
export default class AdminThemeChangeComponent extends Component {
|
|
@tracked diff;
|
|
|
|
constructor() {
|
|
super(...arguments);
|
|
this.loadDiff();
|
|
}
|
|
|
|
@action
|
|
async loadDiff() {
|
|
const diff = await ajax(
|
|
`/admin/logs/staff_action_logs/${this.args.model.staffActionLog.id}/diff`
|
|
);
|
|
this.diff = diff.side_by_side;
|
|
}
|
|
}
|