Updates the RequiresExecution logic so we can skip steps based on some user input (i.e. skip the starter kit installation). Fixes the start kit js stuff to update the model correctly and continue. Fixes the error view to restart - it cannot just go back because there might not be a view there.
This commit is contained in:
@@ -25,6 +25,12 @@ namespace Umbraco.Web.Install.Models
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public abstract InstallSetupResult Execute(T model);
|
||||
|
||||
/// <summary>
|
||||
/// Determines if this step needs to execute based on the current state of the application and/or install process
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public abstract bool RequiresExecution(T model);
|
||||
}
|
||||
|
||||
[DataContract(Name = "step", Namespace = "")]
|
||||
@@ -60,12 +66,6 @@ namespace Umbraco.Web.Install.Models
|
||||
[IgnoreDataMember]
|
||||
public bool PerformsAppRestart { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines if this step needs to execute based on the current state of the application and/or install process
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public abstract bool RequiresExecution();
|
||||
|
||||
/// <summary>
|
||||
/// Defines what order this step needs to execute on the server side since the
|
||||
/// steps might be shown out of order on the front-end
|
||||
|
||||
Reference in New Issue
Block a user