FIX: invite-panels regressions on private topics (#7157)

FIX: invite-panels regressions on private topics (#7157)

diff --git a/app/assets/javascripts/discourse/components/invite-panel.js.es6 b/app/assets/javascripts/discourse/components/invite-panel.js.es6
index 2f0fc23..4427410 100644
--- a/app/assets/javascripts/discourse/components/invite-panel.js.es6
+++ b/app/assets/javascripts/discourse/components/invite-panel.js.es6
@@ -32,9 +32,9 @@ export default Ember.Component.extend({
     "emailOrUsername",
     "invitingToTopic",
     "isPrivateTopic",
-    "topic.groupNames",
-    "topic.saving",
-    "topic.details.can_invite_to"
+    "inviteModel.groupNames.[]",
+    "inviteModel.saving",
+    "inviteModel.details.can_invite_to"
   )
   disabled(
     isAdmin,
@@ -79,7 +79,7 @@ export default Ember.Component.extend({
     "emailOrUsername",
     "inviteModel.saving",
     "isPrivateTopic",
-    "inviteModel.groupNames",
+    "inviteModel.groupNames.[]",
     "hasCustomMessage"
   )
   disabledCopyLink(

GitHub sha: edc6d878