Use correct toast when removing an integration

This commit is contained in:
turt2live 2017-05-28 00:41:18 -06:00
parent 35559c9373
commit af2f5ba393

View File

@ -75,7 +75,11 @@ export class RiotComponent {
} else promise = this.scalar.inviteUser(this.roomId, integration.userId);
promise
.then(() => this.toaster.pop("success", integration.name + " invited to the room"))
.then(() => {
if (integration.isEnabled)
this.toaster.pop('success', integration.name + " was invited to the room");
else this.toaster.pop('success', integration.name + " was removed from the room");
})
.catch(err => {
let errorMessage = "Could not update integration status";