|
@ -1396,10 +1396,6 @@ export default class AccountViewView extends Vue { |
|
|
if (imageResp.status === 200) { |
|
|
if (imageResp.status === 200) { |
|
|
this.imageLimits = imageResp.data; |
|
|
this.imageLimits = imageResp.data; |
|
|
} else { |
|
|
} else { |
|
|
await this.$saveSettings({ |
|
|
|
|
|
profileImageUrl: "", |
|
|
|
|
|
}); |
|
|
|
|
|
this.profileImageUrl = ""; |
|
|
|
|
|
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.NO_IMAGE_ACCESS; |
|
|
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.NO_IMAGE_ACCESS; |
|
|
this.notify.warning(ACCOUNT_VIEW_CONSTANTS.LIMITS.CANNOT_UPLOAD_IMAGES); |
|
|
this.notify.warning(ACCOUNT_VIEW_CONSTANTS.LIMITS.CANNOT_UPLOAD_IMAGES); |
|
|
return; |
|
|
return; |
|
@ -1414,17 +1410,13 @@ export default class AccountViewView extends Vue { |
|
|
if (endorserResp.status === 200) { |
|
|
if (endorserResp.status === 200) { |
|
|
this.endorserLimits = endorserResp.data; |
|
|
this.endorserLimits = endorserResp.data; |
|
|
} else { |
|
|
} else { |
|
|
await this.$saveSettings({ |
|
|
|
|
|
profileImageUrl: "", |
|
|
|
|
|
}); |
|
|
|
|
|
this.profileImageUrl = ""; |
|
|
|
|
|
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.NO_LIMITS_FOUND; |
|
|
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.NO_LIMITS_FOUND; |
|
|
this.notify.warning(ACCOUNT_VIEW_CONSTANTS.LIMITS.BAD_SERVER_RESPONSE); |
|
|
this.notify.warning(ACCOUNT_VIEW_CONSTANTS.LIMITS.BAD_SERVER_RESPONSE); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.ERROR_RETRIEVING_LIMITS; |
|
|
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.ERROR_RETRIEVING_LIMITS; |
|
|
console.log("error: ", error); |
|
|
logger.error("Error retrieving limits: ", error); |
|
|
// this.notify.error(this.limitsMessage, TIMEOUTS.STANDARD); |
|
|
// this.notify.error(this.limitsMessage, TIMEOUTS.STANDARD); |
|
|
} finally { |
|
|
} finally { |
|
|
this.loadingLimits = false; |
|
|
this.loadingLimits = false; |
|
|