mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
Merge branch 'dev' of ../unfediverse.com into dev
This commit is contained in:
commit
7c4d3b8e17
2 changed files with 4 additions and 5 deletions
|
@ -32,7 +32,7 @@ Once the new channel is created you may setup the profile photo, cover photo and
|
||||||
Joining a Group
|
Joining a Group
|
||||||
===============
|
===============
|
||||||
|
|
||||||
You join a group in the same way as you connect with any channel in the network. For public groups you may be automatically approved at the discretion of the group administrator.
|
You join a group in the same way as you connect with any channel in the network. If the option to connect isn't provided, open your Connections app and put the web address or url into the text input provided under "Add New Connection". For public groups you may be automatically approved at the discretion of the group administrator.
|
||||||
|
|
||||||
Leaving a Group
|
Leaving a Group
|
||||||
===============
|
===============
|
||||||
|
|
|
@ -631,23 +631,22 @@ function handleNotifications(data) {
|
||||||
if(data.stream || data.home || data.intros || data.register || data.mail || data.all_events || data.notify || data.files || data.pubs || data.forums) {
|
if(data.stream || data.home || data.intros || data.register || data.mail || data.all_events || data.notify || data.files || data.pubs || data.forums) {
|
||||||
$('.notifications-btn').css('opacity', 1);
|
$('.notifications-btn').css('opacity', 1);
|
||||||
$('#no_notifications').hide();
|
$('#no_notifications').hide();
|
||||||
|
$('#notifications_wrapper').show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('.notifications-btn').css('opacity', 0.5);
|
$('.notifications-btn').css('opacity', 0.5);
|
||||||
$('#navbar-collapse-1').removeClass('show');
|
$('#navbar-collapse-1').removeClass('show');
|
||||||
$('#no_notifications').show();
|
$('#no_notifications').show();
|
||||||
|
$('#notifications_wrapper').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data.home || data.intros || data.register || data.mail || data.notify || data.files) {
|
if(data.home || data.intros || data.register || data.mail || data.notify || data.files) {
|
||||||
$('.notifications-btn-icon').removeClass('fa-exclamation-circle');
|
$('.notifications-btn-icon').removeClass('fa-exclamation-circle');
|
||||||
$('.notifications-btn-icon').addClass('fa-exclamation-triangle');
|
$('.notifications-btn-icon').addClass('fa-exclamation-triangle');
|
||||||
$('#notifications_wrapper').show();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if(!data.home && !data.intros && !data.register && !data.mail && !data.notify && !data.files) {
|
if(!data.home && !data.intros && !data.register && !data.mail && !data.notify && !data.files) {
|
||||||
$('.notifications-btn-icon').removeClass('fa-exclamation-triangle');
|
$('.notifications-btn-icon').removeClass('fa-exclamation-triangle');
|
||||||
$('.notifications-btn-icon').addClass('fa-exclamation-circle');
|
$('.notifications-btn-icon').addClass('fa-exclamation-circle');
|
||||||
$('#notifications_wrapper').hide();
|
|
||||||
}
|
}
|
||||||
if(data.all_events_today) {
|
if(data.all_events_today) {
|
||||||
$('.all_events-update').removeClass('badge-secondary');
|
$('.all_events-update').removeClass('badge-secondary');
|
||||||
|
|
Loading…
Reference in a new issue