mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-08 20:09:44 +00:00
@@ -56,6 +56,21 @@
|
||||
return new Resource(this._http, this._q, '/' + path.join('/'), this._activeUser);
|
||||
};
|
||||
|
||||
/**
|
||||
* @function path
|
||||
* @memberof Resource.prototype
|
||||
* @desc Create a URL of the resource context with any number of additional segments
|
||||
* @return an absolute URL
|
||||
*/
|
||||
Resource.prototype.path = function() {
|
||||
var path = [this._path];
|
||||
|
||||
if (arguments.length > 0)
|
||||
Array.prototype.push.apply(path, Array.prototype.slice.call(arguments));
|
||||
|
||||
return path.join('/');
|
||||
};
|
||||
|
||||
/**
|
||||
* @function fetch
|
||||
* @memberof Resource.prototype
|
||||
|
||||
@@ -152,6 +152,8 @@
|
||||
Card.$Preferences.avatar(this.$$email, 32, {no_404: true}).then(function(url) {
|
||||
_this.$$image = url;
|
||||
});
|
||||
if (this.hasphoto)
|
||||
this.photoURL = Card.$$resource.path(this.pid, this.id, 'photo');
|
||||
if (this.isgroup)
|
||||
this.c_component = 'vlist';
|
||||
this.$avatarIcon = this.$isList()? 'group' : 'person';
|
||||
|
||||
Reference in New Issue
Block a user