mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 12:53:41 +08:00
19 lines
462 B
JavaScript
19 lines
462 B
JavaScript
|
import Component from "@glimmer/component";
|
||
|
import { tracked } from "@glimmer/tracking";
|
||
|
import I18n from "I18n";
|
||
|
|
||
|
export default class MergeUsersConfirmation extends Component {
|
||
|
@tracked value;
|
||
|
|
||
|
get mergeDisabled() {
|
||
|
return !this.value || this.text !== this.value;
|
||
|
}
|
||
|
|
||
|
get text() {
|
||
|
return I18n.t("admin.user.merge.confirmation.text", {
|
||
|
username: this.args.model.username,
|
||
|
targetUsername: this.args.model.targetUsername,
|
||
|
});
|
||
|
}
|
||
|
}
|