Improvement: Visual Indicator for Loading Profiles
This commit is contained in:
1 parent
1837bee95c
commit
def769b7c6
1 file changed
+6
@@ -2420,6 +2420,11 @@ function newUiObject() {
|
||||
/* Image */
|
||||
if (icon !== undefined) {
|
||||
if (icon.canDrawIcon === true) {
|
||||
|
||||
// If this is a User Profile and blockchainTokens is still being loaded then display at half opacity
|
||||
if(thisObject.payload.node.type === "User Profile" && thisObject.payload.blockchainTokens === undefined) {
|
||||
browserCanvasContext.globalAlpha = 0.5
|
||||
}
|
||||
let additionalImageSize = 0
|
||||
if (isRunningAtBackend === true || isReadyToReferenceAttach === true || isReadyToChainAttach === true) { additionalImageSize = 20 }
|
||||
let totalImageSize = additionalImageSize + thisObject.payload.floatingObject.currentImageSize
|
||||
@@ -2454,6 +2459,7 @@ function newUiObject() {
|
||||
totalImageSize,
|
||||
totalImageSize)
|
||||
}
|
||||
browserCanvasContext.globalAlpha = 1
|
||||
}
|
||||
|
||||
if (executingIcon !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user