Rename settings page

This commit is contained in:
Râu Cao
2023-01-09 14:41:16 +08:00
parent 3f1c4f17a7
commit f1ef257c97
6 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,7 @@
class AccountController < ApplicationController
before_action :require_user_signed_in
def index
@current_section = :account
end
end

View File

@@ -1,7 +0,0 @@
class SecurityController < ApplicationController
before_action :require_user_signed_in
def index
@current_section = :security
end
end

View File

@@ -1,4 +1,4 @@
class Settings::SecurityController < SettingsController
class Settings::AccountController < SettingsController
def index
end

View File

@@ -3,8 +3,8 @@
active: current_page?(settings_profile_path)
) %>
<%= render SidenavLinkComponent.new(
name: "Security", path: settings_security_path, icon: "key",
active: current_page?(settings_security_path)
name: "Account", path: settings_account_path, icon: "key",
active: current_page?(settings_account_path)
) %>
<%= render SidenavLinkComponent.new(
name: "Security", path: "#", icon: "shield", disabled: true