x
<div data-controller="polaris-frame" class="Polaris-Frame">
<div
data-polaris-frame-target="saveBar"
class="Polaris-Frame__ContextualSaveBar Polaris-Frame-CSSAnimation--startFade"
>
<div class="Polaris-Frame-ContextualSaveBar">
<div class="Polaris-Frame-ContextualSaveBar__Contents">
<h2 class="Polaris-Frame-ContextualSaveBar__Message">
Unsaved changes
</h2>
<div class="Polaris-Frame-ContextualSaveBar__ActionContainer">
<div class="Polaris-Stack Polaris-Stack--spacingTight">
<div class="Polaris-Stack__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Discard
</div>
</span>
</button>
</div>
<div class="Polaris-Stack__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Save
</div>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div data-polaris-frame-target="navigationOverlay"></div>
<main class="Polaris-Frame__Main">
<div class="Polaris-Frame__Content">
<div data-action="[email protected]>polaris-frame#showSaveBar"></div>
</div>
</main>
</div>
<%= polaris_frame do |frame| %>
<% frame.save_bar(message: "Unsaved changes", flush: true) do |save_bar| %>
<% save_bar.save_action { "Save" } %>
<% save_bar.discard_action { "Discard" } %>
<% end %>
<div data-action="[email protected]>polaris-frame#showSaveBar"></div>
<% end %>
No notes provided.
No params configured.