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

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/views/disco_app/charges/new.html.erb
disco_app-0.9.8 app/views/disco_app/charges/new.html.erb
disco_app-0.9.9 app/views/disco_app/charges/new.html.erb
disco_app-0.9.10 app/views/disco_app/charges/new.html.erb
disco_app-0.9.11 app/views/disco_app/charges/new.html.erb
disco_app-0.10.0 app/views/disco_app/charges/new.html.erb
disco_app-0.10.1 app/views/disco_app/charges/new.html.erb
disco_app-0.10.2 app/views/disco_app/charges/new.html.erb
disco_app-0.10.3 app/views/disco_app/charges/new.html.erb
disco_app-0.10.4 app/views/disco_app/charges/new.html.erb
disco_app-0.10.5 app/views/disco_app/charges/new.html.erb
disco_app-0.11.0 app/views/disco_app/charges/new.html.erb
disco_app-0.11.1 app/views/disco_app/charges/new.html.erb
disco_app-0.12.0 app/views/disco_app/charges/new.html.erb
disco_app-0.12.1 app/views/disco_app/charges/new.html.erb
disco_app-0.12.5 app/views/disco_app/charges/new.html.erb
disco_app-0.12.6 app/views/disco_app/charges/new.html.erb
disco_app-0.12.7 app/views/disco_app/charges/new.html.erb
disco_app-0.13.0 app/views/disco_app/charges/new.html.erb
disco_app-0.13.1 app/views/disco_app/charges/new.html.erb