mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Calendar: Fix missing integration icons, add some explanation tooltips to event icons
This commit is contained in:
parent
2df67647d8
commit
d013249851
@ -450,6 +450,7 @@ class calendar_uilist extends calendar_ui
|
||||
{
|
||||
$icons = calendar_uiviews::integration_get_icons($app,$app_id,$event);
|
||||
}
|
||||
$event['icons'] = $icons;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -494,10 +494,13 @@ var et2_calendar_event = /** @class */ (function (_super) {
|
||||
var icons = [];
|
||||
if (this.options.value.is_private) {
|
||||
// Hide everything
|
||||
icons.push('<img src="' + this.egw().image('private', 'calendar') + '"/>');
|
||||
icons.push('<img src="' + this.egw().image('private', 'calendar') + '" title="' + this.egw().lang('private event') + '"/>');
|
||||
}
|
||||
else {
|
||||
if (this.options.value.app !== 'calendar') {
|
||||
if (this.options.value.icons) {
|
||||
jQuery.extend(icons, this.options.value.icons);
|
||||
}
|
||||
else if (this.options.value.app !== 'calendar') {
|
||||
var app_icon = "" + (egw.link_get_registry(this.options.value.app, 'icon') || (this.options.value.app + '/navbar'));
|
||||
icons.push('<img src="' + this.egw().image(app_icon) + '" title="' + this.egw().lang(this.options.value.app) + '"/>');
|
||||
}
|
||||
@ -506,14 +509,14 @@ var et2_calendar_event = /** @class */ (function (_super) {
|
||||
}
|
||||
if (this.options.value.public == '0') {
|
||||
// Show private flag
|
||||
icons.push('<img src="' + this.egw().image('private', 'calendar') + '"/>');
|
||||
icons.push('<img src="' + this.egw().image('private', 'calendar') + '" title="' + this.egw().lang('private event') + '"/>');
|
||||
}
|
||||
if (this.options.value['recur_type']) {
|
||||
icons.push('<img src="' + this.egw().image('recur', 'calendar') + '" title="' + this.egw().lang('recurring event') + '"/>');
|
||||
}
|
||||
// icons for single user, multiple users or group(s) and resources
|
||||
var single = '<img src="' + this.egw().image('single', 'calendar') + '" title="' + '"/>';
|
||||
var multiple = '<img src="' + this.egw().image('users', 'calendar') + '" title="' + '"/>';
|
||||
var single = '<img src="' + this.egw().image('single', 'calendar') + '" title="' + this.egw().lang("single participant") + '"/>';
|
||||
var multiple = '<img src="' + this.egw().image('users', 'calendar') + '" title="' + this.egw().lang("multiple participants") + '"/>';
|
||||
for (var uid in this.options.value['participants']) {
|
||||
// @ts-ignore
|
||||
if (Object.keys(this.options.value.participants).length == 1 && !isNaN(uid)) {
|
||||
|
@ -627,11 +627,15 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
if(this.options.value.is_private)
|
||||
{
|
||||
// Hide everything
|
||||
icons.push('<img src="'+this.egw().image('private','calendar')+'"/>');
|
||||
icons.push('<img src="'+this.egw().image('private','calendar')+'" title="'+this.egw().lang('private event')+'"/>');
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this.options.value.app !== 'calendar')
|
||||
if(this.options.value.icons)
|
||||
{
|
||||
jQuery.extend(icons, this.options.value.icons);
|
||||
}
|
||||
else if(this.options.value.app !== 'calendar')
|
||||
{
|
||||
let app_icon = ""+(egw.link_get_registry(this.options.value.app,'icon') || (this.options.value.app + '/navbar'));
|
||||
icons.push('<img src="'+this.egw().image(app_icon)+'" title="'+this.egw().lang(this.options.value.app)+'"/>');
|
||||
@ -643,15 +647,15 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
if(this.options.value.public == '0')
|
||||
{
|
||||
// Show private flag
|
||||
icons.push('<img src="'+this.egw().image('private','calendar')+'"/>');
|
||||
icons.push('<img src="'+this.egw().image('private','calendar')+'" title="'+this.egw().lang('private event')+'"/>');
|
||||
}
|
||||
if(this.options.value['recur_type'])
|
||||
{
|
||||
icons.push('<img src="'+this.egw().image('recur','calendar')+'" title="'+this.egw().lang('recurring event')+'"/>');
|
||||
}
|
||||
// icons for single user, multiple users or group(s) and resources
|
||||
const single = '<img src="' + this.egw().image('single', 'calendar') + '" title="' + '"/>';
|
||||
const multiple = '<img src="' + this.egw().image('users', 'calendar') + '" title="' + '"/>';
|
||||
const single = '<img src="' + this.egw().image('single', 'calendar') + '" title="' + this.egw().lang("single participant") + '"/>';
|
||||
const multiple = '<img src="' + this.egw().image('users', 'calendar') + '" title="' + this.egw().lang("multiple participants") + '"/>';
|
||||
for(const uid in this.options.value['participants'])
|
||||
{
|
||||
// @ts-ignore
|
||||
|
@ -370,6 +370,7 @@ monthly calendar en Monthly
|
||||
monthly (by date) calendar en Monthly -by date
|
||||
monthly (by day) calendar en Monthly -by day
|
||||
monthview calendar en Month view
|
||||
multiple participants calendar en Multiple participants
|
||||
multiple week view calendar en Multiple week view
|
||||
name of current user, all other contact fields are valid too calendar en Name of current user, all other contact fields are valid too
|
||||
name of the day of the week (ex: monday) calendar en Name of the day of the week (ex: Monday)
|
||||
@ -450,6 +451,7 @@ prevent deleting of entries admin en Prevent deleting of entries
|
||||
previous calendar en Previous
|
||||
private and global public calendar en Private and global public
|
||||
private and group public calendar en Private and group public
|
||||
private event calendar en Private event
|
||||
private only calendar en Private only
|
||||
quantity calendar en Quantity
|
||||
quick add calendar en Quick add
|
||||
@ -545,6 +547,7 @@ show this month calendar en Show this month
|
||||
show this week calendar en Show this week
|
||||
show year and age calendar en Show year and age
|
||||
single event calendar en Single event
|
||||
single participant calendar en Single participant
|
||||
specify where url of the day links to calendar en Specify where URL of the day links to
|
||||
start calendar en Start
|
||||
start date/time calendar en Start date / time
|
||||
|
Loading…
Reference in New Issue
Block a user