Browse Source

Rename logout action

Vova Tkach 6 years ago
parent
commit
f7c6aced7b

+ 2 - 2
assets/cp.scripts.js

@@ -36,12 +36,12 @@ function AjaxFail() {
 	window.location.reload(false);
 }
 
-function ActionSingOut() {
+function ActionIndexUserLogout() {
 	$.ajax({
 		type: "POST",
 		url: '/cp/',
 		data: {
-			action: 'singout',
+			action: 'index-user-logout',
 		}
 	}).done(function(data) {
 		AjaxDone(data)

File diff suppressed because it is too large
+ 0 - 0
assets/cp.scripts.js.go


File diff suppressed because it is too large
+ 0 - 0
assets/tmpl.cp.base.go


+ 1 - 1
assets/tmpl.cp.base.html

@@ -82,7 +82,7 @@
 						<div class="dropdown-menu dropdown-menu-right" aria-labelledby="nbAccountDropdown">
 							<a class="dropdown-item" href="javascript:;" data-toggle="modal" data-target="#sys-modal-user-settings" data-backdrop="static" data-keyboard="false">My Profile</a>
 							<div class="dropdown-divider"></div>
-							<a class="dropdown-item" href="javascript:ActionSingOut();">Sing Out</a>
+							<a class="dropdown-item" href="javascript:ActionIndexUserLogout();">Logout</a>
 						</div>
 					</li>
 				</ul>

+ 1 - 1
consts/consts.go

@@ -6,7 +6,7 @@ import (
 
 const Debug = true
 const ServerVersion = "1.0.0"
-const AssetsVersion = "2"
+const AssetsVersion = "3"
 const AssetsPath = "assets"
 const DirIndexFile = "index.html"
 

+ 2 - 2
modules/module_index.go

@@ -298,10 +298,10 @@ func (this *Modules) RegisterAction_IndexUserSignIn() *Action {
 	})
 }
 
-func (this *Modules) RegisterAction_CpUserLogout() *Action {
+func (this *Modules) RegisterAction_IndexUserLogout() *Action {
 	return this.newAction(AInfo{
 		WantDB:   true,
-		Mount:    "singout",
+		Mount:    "index-user-logout",
 		WantUser: true,
 	}, func(wrap *wrapper.Wrapper) {
 		// Reset session var

Some files were not shown because too many files changed in this diff