Commit 34fc1418 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(frontend): show alerts

issue #1196
parent a9b9a23f
......@@ -678,6 +678,11 @@ sub _send_message {
$uid = $self->args('id_owner') if $self->defined_arg('id_owner');
$uid = $self->args('uid') if !$uid && $self->defined_arg('uid');
if (!$uid) {
my $user = $self->defined_arg('user');
$uid = $user->id if $user;
}
return if !$uid;
my $domain_name = $self->defined_arg('name');
......
......@@ -4,6 +4,8 @@ use strict;
#####
use locale ':not_characters';
#####
use lib 'lib';
use Carp qw(confess);
use Data::Dumper;
use Digest::SHA qw(sha256_hex);
......@@ -23,7 +25,6 @@ use I18N::LangTags::Detect;
no warnings "experimental::signatures";
use feature qw(signatures);
use lib 'lib';
use Ravada::Front;
use Ravada::Front::Domain;
......
<div id="overNotifications" class="notifications" ng-controller="notifCrtl" ng-cloak>
<div id="overNotifications" class="notifications" ng-controller="notifCrtl"
ng-init="subscribe_alerts('<%= url_for('ws_subscribe')->to_abs %>')"
ng-cloak>
<script type="text/ng-template" id="alert.html">
<div ng-transclude></div>
</script>
<div uib-alert ng-repeat="alert in alerts"
<div uib-alert ng-repeat="alert in alerts_ws"
ng-class="'alert-' + (alert.type || 'warning')"
ng-click="closeAlert($index)"
ng-mouseover="alert.showMessage = false"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment