mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:33:52 +08:00
14 lines
319 B
JavaScript
14 lines
319 B
JavaScript
import Component from "@glimmer/component";
|
|
import { tracked } from "@glimmer/tracking";
|
|
|
|
export default class MergeUsersPrompt extends Component {
|
|
@tracked targetUsername;
|
|
|
|
get mergeDisabled() {
|
|
return (
|
|
!this.targetUsername ||
|
|
this.args.model.user.username === this.targetUsername[0]
|
|
);
|
|
}
|
|
}
|