Browse Source

progressbar delay

pagy
pvincent 10 months ago
parent
commit
eff87fa922
  1. 1
      README.md
  2. 5
      app/controllers/scores_controller.rb
  3. 3
      app/javascript/application.js

1
README.md

@ -50,4 +50,5 @@ end
* [x] plugin for completion * [x] plugin for completion
* [x] Rails Live Reload * [x] Rails Live Reload
* [x] compliance with Tailwind * [x] compliance with Tailwind
* [x] Custom Progress Bar

5
app/controllers/scores_controller.rb

@ -18,13 +18,12 @@ class ScoresController < ApplicationController
end end
# GET /scores/1 # GET /scores/1
def show
sleep 1.5
end
def show; end
# GET /scores/new # GET /scores/new
def new def new
@score = Score.new @score = Score.new
sleep 0.3
end end
# GET /scores/1/edit # GET /scores/1/edit

3
app/javascript/application.js

@ -1,3 +1,6 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails" import "@hotwired/turbo-rails"
import "controllers" import "controllers"
// Customize Turbo default behaviour
Turbo.setProgressBarDelay(300)
Loading…
Cancel
Save