mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Revert "🐛 Fixed unexpected leave confirmation after Cmd+S on member profile"
This reverts commit 186c6f3c42
.
This commit is contained in:
parent
8d33c9d64f
commit
895e3719bd
@ -29,7 +29,6 @@ export default class MemberController extends Controller {
|
||||
@tracked showImpersonateMemberModal = false;
|
||||
@tracked modalLabel = null;
|
||||
@tracked showLabelModal = false;
|
||||
@tracked scratchMember = null;
|
||||
|
||||
_previousLabels = null;
|
||||
_previousNewsletters = null;
|
||||
@ -57,12 +56,6 @@ export default class MemberController extends Controller {
|
||||
|
||||
set member(member) {
|
||||
this.model = member;
|
||||
|
||||
if (member !== this.scratchMember?.member) {
|
||||
const scratchMember = EmberObject.create({member});
|
||||
SCRATCH_PROPS.forEach(prop => defineProperty(scratchMember, prop, boundOneWay(`member.${prop}`)));
|
||||
this.scratchMember = scratchMember;
|
||||
}
|
||||
}
|
||||
|
||||
get dirtyAttributes() {
|
||||
@ -99,6 +92,12 @@ export default class MemberController extends Controller {
|
||||
return options;
|
||||
}
|
||||
|
||||
get scratchMember() {
|
||||
let scratchMember = EmberObject.create({member: this.member});
|
||||
SCRATCH_PROPS.forEach(prop => defineProperty(scratchMember, prop, boundOneWay(`member.${prop}`)));
|
||||
return scratchMember;
|
||||
}
|
||||
|
||||
get subscribedAt() {
|
||||
let memberSince = moment(this.member.createdAtUTC).from(moment());
|
||||
let createdDate = moment(this.member.createdAtUTC).format('D MMM YYYY');
|
||||
|
@ -34,7 +34,6 @@ export default class MembersRoute extends AdminRoute {
|
||||
|
||||
setupController(controller, member, transition) {
|
||||
super.setupController(...arguments);
|
||||
controller.member = member;
|
||||
|
||||
controller.setInitialRelationshipValues();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user