completed client state invalidation in multi-user environment
This commit is contained in:
		| @ -5,8 +5,8 @@ | ||||
|         public const string PackageId = "Oqtane.Framework"; | ||||
|         public const string Version = "0.0.1"; | ||||
|  | ||||
|         public const string PageComponent = "Oqtane.Shared.ThemeBuilder, Oqtane.Client"; | ||||
|         public const string ContainerComponent = "Oqtane.Shared.ContainerBuilder, Oqtane.Client"; | ||||
|         public const string PageComponent = "Oqtane.UI.ThemeBuilder, Oqtane.Client"; | ||||
|         public const string ContainerComponent = "Oqtane.UI.ContainerBuilder, Oqtane.Client"; | ||||
|  | ||||
|         public const string DefaultTheme = "Oqtane.Themes.BlazorTheme.Default, Oqtane.Client"; | ||||
|         public const string DefaultLayout = ""; | ||||
|  | ||||
							
								
								
									
										11
									
								
								Oqtane.Shared/Shared/SiteState.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Oqtane.Shared/Shared/SiteState.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| using Oqtane.Models; | ||||
|  | ||||
| namespace Oqtane.Shared | ||||
| { | ||||
|     // this class is used for passing state between components and services, or controllers and repositories | ||||
|     public class SiteState | ||||
|     { | ||||
|         public Alias Alias { get; set; } | ||||
|  | ||||
|     } | ||||
| } | ||||
| @ -5,7 +5,7 @@ namespace Oqtane.Shared | ||||
| { | ||||
|     public class Utilities | ||||
|     { | ||||
|         public static string NavigateUrl(string alias, string path, string parameters, Reload reload) | ||||
|         public static string NavigateUrl(string alias, string path, string parameters) | ||||
|         { | ||||
|             string url = ""; | ||||
|             if (alias != "") | ||||
| @ -24,10 +24,6 @@ namespace Oqtane.Shared | ||||
|             { | ||||
|                 url += "?" + parameters; | ||||
|             } | ||||
|             if (reload != Reload.None) | ||||
|             { | ||||
|                 url += ((string.IsNullOrEmpty(parameters)) ? "?" : "&") + "reload=" + ((int)reload).ToString(); | ||||
|             } | ||||
|             if (!url.StartsWith("/")) | ||||
|             { | ||||
|                 url = "/" + url; | ||||
| @ -37,7 +33,7 @@ namespace Oqtane.Shared | ||||
|  | ||||
|         public static string EditUrl(string alias, string path, int moduleid, string action, string parameters) | ||||
|         { | ||||
|             string url = NavigateUrl(alias, path, "", Reload.None); | ||||
|             string url = NavigateUrl(alias, path, ""); | ||||
|             if (url == "/") url = ""; | ||||
|             if (moduleid != -1) | ||||
|             { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker