v2 up handler ADisSettings = ADSettings
This commit is contained in:
@@ -21,9 +21,9 @@ class AutomaticDispose {
|
||||
let self = this;
|
||||
|
||||
self.MissionType = null
|
||||
self.MissionID= null
|
||||
self.MyRunner= null
|
||||
self.MyRunnerSettings= null
|
||||
self.MissionID = null
|
||||
self.MyRunner = null
|
||||
self.MyRunnerSettings = null
|
||||
|
||||
self._ADisVehiclesNeed = {}
|
||||
self.MissionConfig = {}
|
||||
@@ -1085,7 +1085,7 @@ class AutomaticDispose {
|
||||
// -
|
||||
// - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
|
||||
|
||||
StartMission() {
|
||||
const self = this;
|
||||
self.MissionType = null;
|
||||
@@ -1106,7 +1106,7 @@ class AutomaticDispose {
|
||||
}
|
||||
console.log("MissionID", self.MissionID);
|
||||
console.log("MissionType", self.MissionType);
|
||||
self.ADisSettings().then((setting) => {
|
||||
self.ADSettings().then((setting) => {
|
||||
if (setting[runnerSettings] != 'true') {
|
||||
return self.ADisDB.ADisMissionsOwn.where({
|
||||
missionID: self.MissionID,
|
||||
@@ -1162,7 +1162,7 @@ class AutomaticDispose {
|
||||
|
||||
WorkVerbandMission() {
|
||||
const self = this;
|
||||
self.ADisSettings().then((setting) => {
|
||||
self.ADSettings().then((setting) => {
|
||||
var title = document.getElementById('missionH1');
|
||||
var isVerband = title.innerText.toLowerCase().includes("[verband]");
|
||||
if (setting['Alliance-Automatic'] == 'true' && isVerband) {
|
||||
@@ -1223,13 +1223,11 @@ class AutomaticDispose {
|
||||
var missionLoad;
|
||||
if (window.name == 'adis-ownmissions') {
|
||||
setOpt = 'MissionsOwn-Automatic';
|
||||
missionLoad = 'ADisMissionsOwn';
|
||||
} else if (window.name == 'adis-krankentransporte') {
|
||||
setOpt = 'Krankentransport-Automatic';
|
||||
missionLoad = 'ADisKrankentransport';
|
||||
}
|
||||
if (setOpt && missionLoad) {
|
||||
self.ADisSettings().then((setting) => {
|
||||
self.ADSettings().then((setting) => {
|
||||
if (setting[setOpt] == 'true') {
|
||||
var coll = self.ADisDB.ADisMissions.where({
|
||||
done: 'false'
|
||||
@@ -1250,7 +1248,7 @@ class AutomaticDispose {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
GetMissionConfiguration(MissionType) {
|
||||
const self = this;
|
||||
@@ -1273,7 +1271,7 @@ class AutomaticDispose {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
StartAlarmProcess() {
|
||||
const self = this;
|
||||
|
||||
Reference in New Issue
Block a user