1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 07:39:39 +02:00

Redirect upload step (#1323)

* Redirect upload step

* Change redirect page regarding state of the import
This commit is contained in:
Ender Ahmet Yurt 2024-10-18 16:10:18 +03:00 committed by GitHub
parent 75a390f03e
commit 4a3685f503
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,11 @@ class ImportsController < ApplicationController
end
def show
redirect_to import_confirm_path(@import), alert: "Please finalize your mappings before proceeding." unless @import.publishable?
if !@import.uploaded?
redirect_to import_upload_path(@import), alert: "Please finalize your file upload."
elsif !@import.publishable?
redirect_to import_confirm_path(@import), alert: "Please finalize your mappings before proceeding."
end
end
def destroy