mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
rename settings index
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SettingsIndexController < ApplicationController
|
||||
class SettingsController < ApplicationController
|
||||
skip_authorization_check
|
||||
|
||||
def index; end
|
||||
@@ -29,7 +29,7 @@
|
||||
</label>
|
||||
<ul tabindex="0" class="z-10 dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box min-w-[160px] text-right">
|
||||
<li class="md:hidden">
|
||||
<%= link_to settings_index_path, class: 'flex items-center' do %>
|
||||
<%= link_to settings_path, class: 'flex items-center' do %>
|
||||
<%= svg_icon('settings', class: 'w-5 h-5 flex-shrink-0 stroke-2') %>
|
||||
<span class="mr-1"><%= t('settings') %></span>
|
||||
<% end %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="<%= expanded ? 'block -mx-3 md:mx-0' : 'w-full md:w-52 flex-none' %>">
|
||||
<% unless expanded %>
|
||||
<div class="md:hidden w-full">
|
||||
<a href="<%= settings_index_path %>" class="flex items-center space-x-0.5 font-medium">
|
||||
<a href="<%= settings_path %>" class="flex items-center space-x-0.5 font-medium">
|
||||
<%= svg_icon('arrow_left', class: 'w-4 h-4 stroke-2') %>
|
||||
<span><%= t('settings') %></span>
|
||||
</a>
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ Rails.application.routes.draw do
|
||||
resources :send_email, only: %i[create], controller: 'submitters_send_email'
|
||||
end
|
||||
|
||||
get 'settings' => 'settings_index#index', as: :settings_index
|
||||
resources :settings, only: %i[index]
|
||||
|
||||
scope '/settings', as: :settings do
|
||||
unless Docuseal.multitenant?
|
||||
|
||||
Reference in New Issue
Block a user