Skip to content

Commit

Permalink
Improves alert example in docu (#3834)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn authored Jul 29, 2024
1 parent f30a186 commit ee9239f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ node_modules
.angulardoc.json
.vscode/diff
.vscode/settings.json
.vs

.changelog

Expand Down
2 changes: 1 addition & 1 deletion client/luigi-client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export declare interface UxManager {
* @example
* import LuigiClient from '@luigi-project/client';
* const settings = {
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject}",
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject} or {neverShowItAgain}",
* type: 'info',
* links: {
* goToHome: { text: 'homepage', url: '/overview' },
Expand Down
2 changes: 1 addition & 1 deletion client/luigi-element.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export declare interface UxManager {
* @example
* import LuigiClient from '@luigi-project/client';
* const settings = {
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject}",
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject} or {neverShowItAgain}",
* type: 'info',
* links: {
* goToHome: { text: 'homepage', url: '/overview' },
Expand Down
2 changes: 1 addition & 1 deletion client/src/uxManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class UxManager extends LuigiClientBase {
* @example
* import LuigiClient from '@luigi-project/client';
* const settings = {
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject}",
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject} or {neverShowItAgain}",
* type: 'info',
* links: {
* goToHome: { text: 'homepage', url: '/overview' },
Expand Down
3 changes: 3 additions & 0 deletions core/src/Alerts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
function addClickListener(link, alertId) {
try {
const linkElem = document.getElementById(link.elemId);
if (!linkElem) {
return;
}
if (linkElem.dismissListener) {
linkElem.removeEventListener('click', linkElem.dismissListener);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/core-api/ux.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class LuigiUX {
* @since 0.6.4
* @example
* const settings = {
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject}",
* text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject} or {neverShowItAgain}",
* type: 'info',
* links: {
* goToHome: { text: 'homepage', url: '/overview' },
Expand Down
2 changes: 1 addition & 1 deletion docs/luigi-client-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ Shows an alert.
```javascript
import LuigiClient from '@luigi-project/client';
const settings = {
text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject}",
text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject} or {neverShowItAgain}",
type: 'info',
links: {
goToHome: { text: 'homepage', url: '/overview' },
Expand Down
2 changes: 1 addition & 1 deletion docs/luigi-core-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ Shows an alert.

```javascript
const settings = {
text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject}",
text: "Ut enim ad minim veniam, {goToHome} quis nostrud exercitation ullamco {relativePath}. Duis aute irure dolor {goToOtherProject} or {neverShowItAgain}",
type: 'info',
links: {
goToHome: { text: 'homepage', url: '/overview' },
Expand Down

0 comments on commit ee9239f

Please sign in to comment.