added a ScriptsLoaded property in ModuleBase and ThemeBase for flow control in Interactive rendering scenarios
This commit is contained in:
parent
f7cf25c4bb
commit
a87af264eb
|
@ -18,6 +18,7 @@ namespace Oqtane.Modules
|
||||||
private Logger _logger;
|
private Logger _logger;
|
||||||
private string _urlparametersstate;
|
private string _urlparametersstate;
|
||||||
private Dictionary<string, string> _urlparameters;
|
private Dictionary<string, string> _urlparameters;
|
||||||
|
private bool _scriptsloaded = false;
|
||||||
|
|
||||||
protected Logger logger => _logger ?? (_logger = new Logger(this));
|
protected Logger logger => _logger ?? (_logger = new Logger(this));
|
||||||
|
|
||||||
|
@ -117,6 +118,7 @@ namespace Oqtane.Modules
|
||||||
await interop.IncludeScripts(scripts.ToArray());
|
await interop.IncludeScripts(scripts.ToArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_scriptsloaded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +127,14 @@ namespace Oqtane.Modules
|
||||||
return PageState?.RenderId == ModuleState?.RenderId;
|
return PageState?.RenderId == ModuleState?.RenderId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool ScriptsLoaded
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _scriptsloaded;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// path method
|
// path method
|
||||||
|
|
||||||
public string ModulePath()
|
public string ModulePath()
|
||||||
|
|
|
@ -15,6 +15,8 @@ namespace Oqtane.Themes
|
||||||
{
|
{
|
||||||
public abstract class ThemeBase : ComponentBase, IThemeControl
|
public abstract class ThemeBase : ComponentBase, IThemeControl
|
||||||
{
|
{
|
||||||
|
private bool _scriptsloaded = false;
|
||||||
|
|
||||||
[Inject]
|
[Inject]
|
||||||
protected ILogService LoggingService { get; set; }
|
protected ILogService LoggingService { get; set; }
|
||||||
|
|
||||||
|
@ -82,6 +84,15 @@ namespace Oqtane.Themes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_scriptsloaded = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool ScriptsLoaded
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _scriptsloaded;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// property for obtaining theme information about this theme component
|
// property for obtaining theme information about this theme component
|
||||||
|
|
Loading…
Reference in New Issue
Block a user