Browse Source

progressbar delay

pagy
pvincent 11 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] Rails Live Reload
* [x] compliance with Tailwind
* [x] Custom Progress Bar

5
app/controllers/scores_controller.rb

@ -18,13 +18,12 @@ class ScoresController < ApplicationController
end
# GET /scores/1
def show
sleep 1.5
end
def show; end
# GET /scores/new
def new
@score = Score.new
sleep 0.3
end
# 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
import "@hotwired/turbo-rails"
import "controllers"
// Customize Turbo default behaviour
Turbo.setProgressBarDelay(300)
Loading…
Cancel
Save