This commit is contained in:
2021-03-03 17:37:10 +00:00
parent 138e088544
commit f3620db833
2 changed files with 16 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
public string PluginVersion public string PluginVersion
{ {
get { return "7.6.1-alpha.106"; } get { return "7.6.1-alpha.103"; }
} }
public string About public string About
@@ -147,6 +147,15 @@ namespace AyaNova.PlugIn.V8
return; return;
} }
//check if in migrate mode
if (util.ServerState != "MigrateMode")
{
MessageBox.Show("The target server must be set to Server State - \"Migrate Mode\"\nbut is currently in Server State - \"" + util.ServerState + "\"\n\n- login to AyaNova 8 as the SuperUser\n- select \"Server Operations\" section then \"Server state\" page\n- set to \"Migrate mode\", save and logout\n- start V8Migrate",
"Target server is in \"Migrate mode\"");
return;
}
Opt dOpt = new Opt(); Opt dOpt = new Opt();
var ro = dOpt.ShowDialog(); var ro = dOpt.ShowDialog();
if (ro == DialogResult.Cancel) if (ro == DialogResult.Cancel)

View File

@@ -26,7 +26,7 @@ namespace AyaNova.PlugIn.V8
internal static string ApiBaseUrl { get; set; } internal static string ApiBaseUrl { get; set; }
internal static string JWT { get; set; } internal static string JWT { get; set; }
public static bool Initialized { get; set; } public static bool Initialized { get; set; }
internal static string ServerState { get; set; }
public util() public util()
@@ -120,6 +120,9 @@ namespace AyaNova.PlugIn.V8
return false; return false;
} }
a = await GetAsync("server-state/");
ServerState = a.ObjectResponse["data"]["serverState"].Value<string>();
return true; return true;
} }