FIX: Invites when no group is selected (#10201)
This commit is contained in:
parent
cb1f891392
commit
9d74cf6a63
|
@ -14,7 +14,7 @@ export default Component.extend({
|
||||||
inviteExpiresAt: moment()
|
inviteExpiresAt: moment()
|
||||||
.add(1, "month")
|
.add(1, "month")
|
||||||
.format("YYYY-MM-DD"),
|
.format("YYYY-MM-DD"),
|
||||||
groupIds: null,
|
groupIds: [],
|
||||||
allGroups: null,
|
allGroups: null,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
@ -49,7 +49,7 @@ export default Component.extend({
|
||||||
reset() {
|
reset() {
|
||||||
this.setProperties({
|
this.setProperties({
|
||||||
maxRedemptionAllowed: 5,
|
maxRedemptionAllowed: 5,
|
||||||
groupIds: null
|
groupIds: []
|
||||||
});
|
});
|
||||||
|
|
||||||
this.inviteModel.setProperties({
|
this.inviteModel.setProperties({
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { getNativeContact } from "discourse/lib/pwa-utils";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
tagName: null,
|
tagName: null,
|
||||||
groupIds: null,
|
groupIds: [],
|
||||||
allGroups: null,
|
allGroups: null,
|
||||||
|
|
||||||
inviteModel: alias("panel.model.inviteModel"),
|
inviteModel: alias("panel.model.inviteModel"),
|
||||||
|
@ -292,7 +292,7 @@ export default Component.extend({
|
||||||
hasCustomMessage: false,
|
hasCustomMessage: false,
|
||||||
customMessage: null,
|
customMessage: null,
|
||||||
invitingExistingUserToTopic: false,
|
invitingExistingUserToTopic: false,
|
||||||
groupIds: null
|
groupIds: []
|
||||||
});
|
});
|
||||||
|
|
||||||
this.inviteModel.setProperties({
|
this.inviteModel.setProperties({
|
||||||
|
|
Loading…
Reference in New Issue