From af2f5ba3931bc66f659dafdecaa3a8140830fe5b Mon Sep 17 00:00:00 2001 From: turt2live Date: Sun, 28 May 2017 00:41:18 -0600 Subject: [PATCH] Use correct toast when removing an integration --- web/app/riot/riot.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/app/riot/riot.component.ts b/web/app/riot/riot.component.ts index 5c8fa3d..531c458 100644 --- a/web/app/riot/riot.component.ts +++ b/web/app/riot/riot.component.ts @@ -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";