Skip to content

Commit

Permalink
Add openOst method to MasStudio and update quick action card to open …
Browse files Browse the repository at this point in the history
…Offer Selector Tool; enhance style with transition effect
  • Loading branch information
Axelcureno committed Dec 5, 2024
1 parent f143b52 commit 24b520c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion studio/src/studio.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import './mas-surface-picker.js';
import { contentIcon } from './img/content-icon.js';
import { promosIcon } from './img/promos-icon.js';
import { ostIcon } from './img/ost-icon.js';
import {
openOfferSelectorTool,
closeOfferSelectorTool,
} from './rte/ost.js';

const EVENT_LOAD_START = 'load-start';
const EVENT_LOAD_END = 'load-end';
Expand Down Expand Up @@ -345,6 +349,10 @@ class MasStudio extends LitElement {
this.requestUpdate();
}

openOst() {
openOfferSelectorTool();
}

renderSplashScreen() {
return html`
<div id="splash-container">
Expand All @@ -369,7 +377,7 @@ class MasStudio extends LitElement {
</div>
<div
class="quick-action-card"
@click=${this.viewPromotions}
@click=${this.openOst}
>
<div slot="cover-photo">${ostIcon}</div>
<div slot="heading">Open Offer Selector Tool</div>
Expand Down
1 change: 1 addition & 0 deletions studio/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ sp-underlay + sp-dialog {
overflow-y: auto;
box-sizing: border-box;
box-shadow: 0px 1px 4px 4px rgb(0 0 0 / 10%);
transition: right 0.3s ease-in-out;
}

#actions {
Expand Down

0 comments on commit 24b520c

Please sign in to comment.