1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-21 00:55:17 +00:00

Can get account image settings

This commit is contained in:
2020-03-22 14:36:44 +01:00
parent ea203e6b3f
commit d02eb7afce
3 changed files with 35 additions and 0 deletions

View File

@ -33,6 +33,14 @@ export class AccountImage {
return AccountImage.urlForFile(this.path);
}
/**
* Check out whether the user has an account image
* or if it is the default account image
*/
get hasImage() : boolean {
return this.path.length > 0;
}
static get errorURL() : string {
return this.urlForFile(errorAccountImage);
}