Skip to content

Commit

Permalink
MWPW-151885 - [LocUI] messaging for auth redirect (#2463)
Browse files Browse the repository at this point in the history
* foe locui block that displays the message to re-run

* update message
  • Loading branch information
Sartxi authored Jun 13, 2024
1 parent 083f2f1 commit 0cdd84a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/blocks/locui/locui.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.locui.container {
margin: 0 auto;
margin-top: 10vh;
max-width: 700px;
border-radius: 10px;
border: 10px solid #eee;
padding: 10px 30px 30px;
}
16 changes: 16 additions & 0 deletions libs/blocks/locui/locui.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { createTag } from '../../utils/utils.js';

export default function init(el) {
el.classList.add('container');
const heading = createTag('h2', null, 'Missing project details');
const paragraph = createTag('p', null, 'The project details were removed after you logged in. To resolve this:');
const steps = createTag('ol', null);
const stepList = ['Close this window or tab.', 'Open your project Excel file.', 'Click "Localize..." in Sidekick again.'];
stepList.forEach((step) => steps.append(createTag('li', null, step)));
const learnmore = createTag('a', {
class: 'con-button',
href: 'https://milo.adobe.com/docs/authoring/localization#:~:text=at%20render%20time.-,Troubleshooting,-Error%20matrix',
target: '_blank',
}, 'Learn More');
el.append(heading, paragraph, steps, learnmore);
}
1 change: 1 addition & 0 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const MILO_BLOCKS = [
'icon-block',
'iframe',
'instagram',
'locui',
'marketo',
'marquee',
'marquee-anchors',
Expand Down

0 comments on commit 0cdd84a

Please sign in to comment.