Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Commit

Permalink
Add notification when the password was skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
vainamov committed Mar 10, 2019
1 parent 883d26d commit 0766f68
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/NeoChannelPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,17 @@ export default {
}
});
}
if (channel.password && PermissionService.hasPermission("neo.channel.join.ignorepassword", this.$store.state.grantedPermissions)) {
new metroUI.Notification({
payload: {},
title: "Info",
icon: "info",
content: "Du hast diesen Channel ohne Passwort betreten. Du könntest eventuell unerwünscht sein.",
inputs: "",
buttons: [],
}).show();
}
},
sendMessage(text) {
SocketService.send({
Expand Down

0 comments on commit 0766f68

Please sign in to comment.