@@ -63,8 +63,10 @@ angular.module('mm.addons.messages')
6363 return $mmaMessages . isContact ( user . id ) . then ( function ( isContact ) {
6464 if ( isContact ) {
6565 $scope . title = 'mma.messages.removecontact' ;
66+ $scope . class = 'mma-messages-removecontact-handler' ;
6667 } else {
6768 $scope . title = 'mma.messages.addcontact' ;
69+ $scope . class = 'mma-messages-addcontact-handler' ;
6870 }
6971 } ) . catch ( function ( ) {
7072 // This fails for some reason, let's just hide the button.
@@ -145,8 +147,10 @@ angular.module('mm.addons.messages')
145147 return $mmaMessages . isBlocked ( user . id ) . then ( function ( isBlocked ) {
146148 if ( isBlocked ) {
147149 $scope . title = 'mma.messages.unblockcontact' ;
150+ $scope . class = 'mma-messages-unblockcontact-handler' ;
148151 } else {
149152 $scope . title = 'mma.messages.blockcontact' ;
153+ $scope . class = 'mma-messages-blockcontact-handler' ;
150154 }
151155 } ) . catch ( function ( ) {
152156 // This fails for some reason, let's just hide the button.
@@ -222,6 +226,7 @@ angular.module('mm.addons.messages')
222226 */
223227 return function ( $scope ) {
224228 $scope . title = 'mma.messages.sendmessage' ;
229+ $scope . class = 'mma-messages-sendmessage-handler' ;
225230 $scope . action = function ( $event ) {
226231 $event . preventDefault ( ) ;
227232 $event . stopPropagation ( ) ;
@@ -274,6 +279,7 @@ angular.module('mm.addons.messages')
274279 $scope . icon = 'ion-chatbox' ;
275280 $scope . title = 'mma.messages.messages' ;
276281 $scope . state = 'site.messages' ;
282+ $scope . class = 'mma-messages-handler' ;
277283 } ;
278284 } ;
279285
0 commit comments