Skip to content

Commit

Permalink
Merge branch 'QA_5_2'
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Apr 30, 2024
2 parents 8cf3e5a + de7a964 commit 85c8385
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions resources/js/src/modules/functions.ts
Expand Up @@ -1529,6 +1529,24 @@ function dismissNotifications () {
var copyStatus = Functions.copyToClipboard($(this).attr('data-text'));
displayCopyStatus(this, copyStatus);
});

$(document).on('mouseover mouseleave', '.ajax_notification a', function (event) {
let message = window.Messages.strDismiss;

if (event.type === 'mouseover') {
message = $(this).hasClass('copyQueryBtn') ? window.Messages.strCopyToClipboard : window.Messages.strEditQuery;
}

tooltip(
$('.ajax_notification'),
'span',
message
);
});

$(document).on('mouseup', '.ajax_notification a', function (event) {
event.stopPropagation();
});
};
}

Expand Down
2 changes: 2 additions & 0 deletions src/Controllers/JavaScriptMessagesController.php
Expand Up @@ -398,6 +398,7 @@ private function getMessages(): array
'strHideQueryBox' => __('Hide query box'),
'strShowQueryBox' => __('Show query box'),
'strEdit' => __('Edit'),
'strEditQuery' => __('Edit query'),

Check warning on line 401 in src/Controllers/JavaScriptMessagesController.php

View workflow job for this annotation

GitHub Actions / Infection (8.2, ubuntu-latest)

Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ 'strHideQueryBox' => __('Hide query box'), 'strShowQueryBox' => __('Show query box'), 'strEdit' => __('Edit'), - 'strEditQuery' => __('Edit query'), + 'strEditQuery' > __('Edit query'), 'strDelete' => __('Delete'), 'strNotValidRowNumber' => __('%d is not valid row number.'), 'strBrowseForeignValues' => __('Browse foreign values'),
'strDelete' => __('Delete'),
'strNotValidRowNumber' => __('%d is not valid row number.'),
'strBrowseForeignValues' => __('Browse foreign values'),
Expand Down Expand Up @@ -485,6 +486,7 @@ private function getMessages(): array

/* For table/change.js */
'strIgnore' => __('Ignore'),
'strCopyToClipboard' => __('Copy to clipboard'),

Check warning on line 489 in src/Controllers/JavaScriptMessagesController.php

View workflow job for this annotation

GitHub Actions / Infection (8.2, ubuntu-latest)

Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ 'strDataPointContent' => __('Data point content'), /* For table/change.js */ 'strIgnore' => __('Ignore'), - 'strCopyToClipboard' => __('Copy to clipboard'), + 'strCopyToClipboard' > __('Copy to clipboard'), 'strCopy' => __('Copy'), 'strX' => __('X'), 'strY' => __('Y'),
'strCopy' => __('Copy'),
'strX' => __('X'),
'strY' => __('Y'),
Expand Down

0 comments on commit 85c8385

Please sign in to comment.