|
@@ -7268,19 +7268,16 @@
|
|
|
$("#alternativeAccountList").empty();
|
|
|
if (getBrowserAccountPoolUUID() == undefined){
|
|
|
//Empty or no stored accounts
|
|
|
- $("#alternativeAccountList").append(`<div class="ui message">
|
|
|
- <i class="ui green check circle icon"></i> ${applocale.getString("account/switch/noAlternative", "No other account stored on this browser")}
|
|
|
- </div>`);
|
|
|
- $("#signoutAllButton").addClass('disabled');
|
|
|
- return;
|
|
|
+ $("#alternativeAccountList").append(`<i class="ui green check circle icon"></i> ${applocale.getString("account/switch/noAlternative", "No other account stored on this browser")}`);
|
|
|
+ $("#alternativeAccountList").css("padding-top", "8px");
|
|
|
+ $("#signoutAllButton").addClass('disabled');
|
|
|
+ return;
|
|
|
}else{
|
|
|
//Request server side for the account pool
|
|
|
$.get("system/auth/u/list?pid=" + getBrowserAccountPoolUUID(), function(data){
|
|
|
if (data.error != undefined){
|
|
|
- $("#alternativeAccountList").append(`<div class="ui message">
|
|
|
- <i class="ui green check circle icon"></i> ${applocale.getString("account/switch/noAlternative", "No other account stored on this browser")}
|
|
|
- </div>`);
|
|
|
-
|
|
|
+ $("#alternativeAccountList").append(`<i class="ui green check circle icon"></i> ${applocale.getString("account/switch/noAlternative", "No other account stored on this browser")}`);
|
|
|
+ $("#alternativeAccountList").css("padding-top", "8px");
|
|
|
//This uuid no longer exists or it has been expired and removed by backend server/
|
|
|
localStorage.removeItem("ao_acc");
|
|
|
}else{
|
|
@@ -7290,7 +7287,7 @@
|
|
|
//Skip
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ $("#alternativeAccountList").css("padding-top", "0px");
|
|
|
$.get("system/desktop/user?target=" + account.Username, function(data){
|
|
|
let userIcon = data.UserIcon;
|
|
|
if (userIcon == ""){
|
|
@@ -7312,9 +7309,8 @@
|
|
|
$("#signoutAllButton").removeClass('disabled');
|
|
|
}else{
|
|
|
$("#signoutAllButton").addClass('disabled');
|
|
|
- $("#alternativeAccountList").append(`<div class="ui message">
|
|
|
- <i class="ui green check circle icon"></i> ${applocale.getString("account/switch/noAlternative", "No other account stored on this browser")}
|
|
|
- </div>`);
|
|
|
+ $("#alternativeAccountList").css("padding-top", "8px");
|
|
|
+ $("#alternativeAccountList").append(`<i class="ui green check circle icon"></i> ${applocale.getString("account/switch/noAlternative", "No other account stored on this browser")}`);
|
|
|
return;
|
|
|
}
|
|
|
}
|