Sha256: 4ce24c064529053680e8183ba6086d2d50f1bcedeee11c9634d6faa40e58263b
Contents?: true
Size: 905 Bytes
Versions: 45
Compression:
Stored size: 905 Bytes
Contents
<% provide(:title, 'Thankyou') %> <p> Thanks for installing <%= DiscoApp.configuration.app_name %>! </p> <p id="account-warning"></p> <%= form_tag disco_app.subscription_charges_path(@subscription), id: 'install-ok', method: 'POST', target: '_parent' do %> <%= submit_tag 'Okay', class: 'form-input' %> <% end %> <script> ShopifyApp.ready(function(){ var container = document.getElementById('account-warning'); if (ShopifyApp.User.current.accountAccess === "Account owner") { container.innerHTML = "Before we start setting things up, we need you to authorize a charge for the application." } else { container.innerHTML = "Since you're not the account owner, you won't be able to setup a charge. Ask the account owner to install the app." var okButton = document.getElementById('install-ok'); okButton.parentElement.removeChild(okButton); } }); </script>
Version data entries
45 entries across 45 versions & 1 rubygems