Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MPFE-1005] User manager > deactivate function #7

Merged
merged 3 commits into from
Jun 7, 2017
Merged

Conversation

cravler
Copy link
Member

@cravler cravler commented Jun 5, 2017

No description provided.

@sergeil
Copy link
Contributor

sergeil commented Jun 6, 2017

Please also update composer.json so it would include "dev-master" version of "modera/mjr" package, as this new feature requires functionality added in 0.5.0 version of MJR which is not released yet.

If no problems are found then during next weekend I will release MJR 0.5.0 and 2.55.0 of foundation so everybody so other project can also update to a stable version.

@@ -40,6 +48,27 @@ Ext.define('Modera.backend.security.toolscontribution.runtime.user.ListActivity'
me.fireEvent('handleaction', 'edit-groups', sourceComponent, params);
});

ui.on('enableprofile', function(sourceComponent, params) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move 'enableprofile' and 'disableprofile' listeners to template method called "attachListeners". "attachContractListeners" by convention is used for setting to set-up inter-activity interaction listeners only.

For more details read this:

@@ -73,12 +73,26 @@ public function getConfig()
'firstName' => $user->getFirstName(),
'lastName' => $user->getLastName(),
'middleName' => $user->getMiddleName(),
'isActive' => $user->getIsActive(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though method "setIsActive" and "getIsActive" were introduced in a scope of other commit it doesn't exactly follow proper mutator method names convention, instead it is preferred to have names such as "setActive" and "isActive" for boolean getter/setter pairs, please add @deprecated annotation to both setIsActive/getIsActive methods in User class and add proper ones (isActive, setActive) instead.

@sergeil sergeil merged commit 5c1360e into master Jun 7, 2017
@cravler cravler deleted the MPFE-1005 branch May 23, 2019 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants