mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-01 14:42:14 +00:00
Use correct toast when removing an integration
This commit is contained in:
parent
35559c9373
commit
af2f5ba393
@ -75,7 +75,11 @@ export class RiotComponent {
|
|||||||
} else promise = this.scalar.inviteUser(this.roomId, integration.userId);
|
} else promise = this.scalar.inviteUser(this.roomId, integration.userId);
|
||||||
|
|
||||||
promise
|
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 => {
|
.catch(err => {
|
||||||
let errorMessage = "Could not update integration status";
|
let errorMessage = "Could not update integration status";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user