Skip to content

Commit 3f5a58e

Browse files
committed
Notification Cookie path fix
1 parent 53381b6 commit 3f5a58e

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

app/Providers/EventServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class EventServiceProvider extends ServiceProvider
1414
*/
1515
protected $listen = [
1616
// log actions
17-
'App\Events\ActionWasTriggered' => [
17+
'App\Events\ActivityWasTriggered' => [
1818
'App\Listeners\SaveActivity',
1919
],
2020
'App\Events\ContactUsFeedback' => [

resources/assets/admin/js/titan/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function getHeaderNotifications()
1414
for (var i = 0; i < cookie.length; i++) {
1515
items.push({'id': cookie[i]['id'], 'read': true});
1616
}
17-
$.cookie(type, items, {expires: 2});
17+
$.cookie(type, items, {expires: 2, path: '/admin'});
1818
$('#js-' + type + '-badge').hide();
1919
}
2020
}

resources/views/admin/dashboard.blade.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
@section('content')
44

55
<div class="well well-sm bg-gray-light">
6-
<p><strong>Note</strong>: uBlock Origin browser extension block the '<strong>/api/analtyics</strong>' ajax to get the google analytics</p>
6+
<ul>
7+
<li><strong>uBlock Origin</strong> browser extension block the '<strong>/api/analtyics</strong>' ajax to
8+
get the google analytics
9+
</li>
10+
<li>
11+
<a target="_blank" href="https://github.com/bpocallaghan/impersonate">Impersonation</a>.
12+
Go <a href="/admin/settings/admin/users">here</a> and click on the 'impersonate
13+
user' action
14+
</li>
15+
</ul>
716
</div>
817

918
@include('admin.partials.boxes.dashboard_header')

resources/views/admin/partials/header.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</a>
4040
<ul class="dropdown-menu">
4141
<li>
42-
<ul id="js-actions-list" class="menu">
42+
<ul id="js-activities-list" class="menu">
4343

4444
</ul>
4545
</li>

0 commit comments

Comments
 (0)