BUG Fixed when the team was not created yet.
This commit is contained in:
1 parent
1f0ca0183f
commit
f4c26d9953
2 files changed
+12
-5
No files matched your search
+3
-3
@@ -39,6 +39,9 @@ function newTopSpace() {
|
||||
eventHandler: newEventHandler()
|
||||
};
|
||||
|
||||
thisObject.login = newLogin();
|
||||
thisObject.login.initialize();
|
||||
|
||||
thisObject.companyLogo = newCompanyLogo();
|
||||
thisObject.companyLogo.initialize();
|
||||
|
||||
@@ -57,9 +60,6 @@ function newTopSpace() {
|
||||
thisObject.currentStartMode = newCurrentStartMode();
|
||||
thisObject.currentStartMode.initialize(sharedStatus);
|
||||
|
||||
thisObject.login = newLogin();
|
||||
thisObject.login.initialize();
|
||||
|
||||
}
|
||||
|
||||
function getContainer(point) {
|
||||
|
||||
+9
-2
@@ -21,7 +21,7 @@ function newDevTeam() {
|
||||
container.isDraggeable = false;
|
||||
container.isClickeable = true;
|
||||
|
||||
const NOT_FOUND = "";
|
||||
const NOT_FOUND = "Team NOT FOUND";
|
||||
|
||||
let sharedStatus;
|
||||
let label = ""
|
||||
@@ -30,11 +30,18 @@ function newDevTeam() {
|
||||
|
||||
function initialize(pSharedStatus) {
|
||||
|
||||
let sessionToken = window.localStorage.getItem('sessionToken');
|
||||
|
||||
if (sessionToken === null || sessionToken === "") {
|
||||
/* not logged in */
|
||||
return;
|
||||
}
|
||||
|
||||
sharedStatus = pSharedStatus;
|
||||
|
||||
let storedTeams = window.localStorage.getItem('userTeams');
|
||||
|
||||
if (storedTeams === null || storedTeams.length === 0) {
|
||||
if (storedTeams === null || storedTeams === "[]" || storedTeams === "") {
|
||||
window.TEAMS = "";
|
||||
label = NOT_FOUND;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user