Skip to content

Commit 057e4d5

Browse files
committed
Show a different message when subscribers are disabled
1 parent 197493b commit 057e4d5

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

resources/lang/en/dashboard.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,15 @@
147147
],
148148
// Subscribers
149149
'subscribers' => [
150-
'subscribers' => 'Subscribers',
151-
'description' => 'Subscribers will receive email updates when incidents are created or components are updated.',
152-
'verified' => 'Verified',
153-
'not_verified' => 'Not verified',
154-
'subscriber' => ':email, subscribed :date',
155-
'no_subscriptions' => 'Subscribed to all updates',
156-
'global' => 'Globally subscribed',
157-
'add' => [
150+
'subscribers' => 'Subscribers',
151+
'description' => 'Subscribers will receive email updates when incidents are created or components are updated.',
152+
'description_disabled' => 'To use this feature, you need allow people to signup for notifications.',
153+
'verified' => 'Verified',
154+
'not_verified' => 'Not verified',
155+
'subscriber' => ':email, subscribed :date',
156+
'no_subscriptions' => 'Subscribed to all updates',
157+
'global' => 'Globally subscribed',
158+
'add' => [
158159
'title' => 'Add a new subscriber',
159160
'success' => 'Subscriber has been added!',
160161
'failure' => 'Something went wrong adding the subscriber, please try again.',

resources/views/dashboard/subscribers/index.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
<div class="content-wrapper header-fixed">
1919
<div class="row">
2020
<div class="col-sm-12">
21-
<p class="lead">{{ trans('dashboard.subscribers.description') }}</p>
21+
<p class="lead">
22+
@if($enable_subscribers)
23+
{{ trans('dashboard.subscribers.description') }}
24+
@else
25+
{{ trans('dashboard.subscribers.description_disabled') }}
26+
@endif
27+
</p>
2228

2329
<div class="striped-list">
2430
@foreach($subscribers as $subscriber)

0 commit comments

Comments
 (0)