Skip to content

Commit

Permalink
FIX bug notification + changement texte
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickFavre committed Feb 14, 2022
1 parent c753af3 commit daf61a4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Homestead.yaml
npm-debug.log
.env
package-lock.json
.vscode/launch.json
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.5.1-1
v2.5.1-2
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ public function handle(ComponentStatusWasChangedEvent $event)
}

// YF - Don't notify if checkbox not checked
if ($_POST["component_notify"] == "false" || $_POST["component_notify"] == ""){
return;
}
if (array_key_exists('component_notify', $_POST)) {
if ($_POST["component_notify"] == "false" || $_POST["component_notify"] == ""){
return;
}
} else return;



// First notify all global subscribers.
$globalSubscribers = $this->subscriber->isVerified()->isGlobal()->get();
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/fr-FR/cachet.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// Incidents
'incidents' => [
'none' => 'Aucun incident signalé',
'past' => 'Incidents antérieurs',
'past' => 'Incidents',
'stickied' => 'Incidents épinglés',
'scheduled' => 'Maintenance Planifiée',
'scheduled_at' => ', planifé à :timestamp',
Expand Down
4 changes: 2 additions & 2 deletions resources/lang/fr-FR/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
'verify' => [
'mail' => [
'subject' => 'Vérifier votre abonnement',
'content' => 'Cliquer pour vérifier votre abonnement à :app_name status page.',
'title' => 'Vérifier votre abonnement à :app_name status page.',
'content' => 'Merci de cliquer sur « Vérifier » ci-dessus afin de confirmer votre adresse email et votre abonnement.',
'title' => 'Bonjour, vous êtes abonnés à la page de suivi des incidents de production sur les Solutions AVMP’UP (TEL4B, FAXBIS, SMSBIS, DEMAT’MANAGER, SVI, TRUNKSIP)',
'action' => 'Vérifier',
],
],
Expand Down
6 changes: 3 additions & 3 deletions resources/views/vendor/notifications/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
@if (! empty($salutation))
{{ $salutation }}
@else
@lang('Regards'),<br>{{ setting('app_name', config('app.name')) }}
@lang('Cordialement'),<br>{{ setting('app_name', config('app.name')) }}
@endif

{{-- Subcopy --}}
@isset($actionText)
@component('mail::subcopy')
@lang(
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser: [:actionURL](:actionURL)',
"Si vous rencontrez des problèmes avec le bouton \":actionText\" , copier et coller l'url suivante\n".
'dans votre navigateur: [:actionURL](:actionURL)',
[
'actionText' => $actionText,
'actionURL' => $actionUrl,
Expand Down

0 comments on commit daf61a4

Please sign in to comment.