adding Shortcut/Dashlet reload icon.
This commit is contained in:
parent
2e0c3dc48c
commit
a421e5297a
5 changed files with 55 additions and 7 deletions
|
|
@ -200,6 +200,10 @@ sub definition {
|
|||
prefFieldsToImport=>{
|
||||
fieldType=>"checkList",
|
||||
defaultValue=>undef
|
||||
},
|
||||
showReloadIcon=>{
|
||||
fieldType=>"yesNo",
|
||||
defaultValue=>1
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -264,18 +268,23 @@ sub getEditForm {
|
|||
},
|
||||
-extras=>$self->{_disabled}
|
||||
);
|
||||
|
||||
$tabform->getTab("properties")->readOnly(
|
||||
-value=>$self->_drawQueryBuilder(),
|
||||
-label=>WebGUI::International::get("Criteria","Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get("Criteria description","Asset_Shortcut")
|
||||
);
|
||||
$tabform->getTab("properties")->readOnly(
|
||||
-value=>$self->_drawQueryBuilder(),
|
||||
-label=>WebGUI::International::get("Criteria","Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get("Criteria description","Asset_Shortcut")
|
||||
);
|
||||
}
|
||||
$tabform->addTab('overrides',$i18n->get('Overrides'));
|
||||
$tabform->getTab('overrides')->raw($self->getOverridesList);
|
||||
if ($self->isDashlet) {
|
||||
$tabform->addTab('preferences',$i18n->get('Preferences'));
|
||||
$tabform->getTab('preferences')->raw($self->getFieldsList);
|
||||
$tabform->getTab("properties")->yesNo(
|
||||
-value=>$self->getValue("showReloadIcon"),
|
||||
-name=>"showReloadIcon",
|
||||
-label=>WebGUI::International::get("show reload icon","Asset_Shortcut"),
|
||||
-hoverHelp=>WebGUI::International::get("show reload icon description","Asset_Shortcut")
|
||||
);
|
||||
}
|
||||
return $tabform;
|
||||
}
|
||||
|
|
@ -425,6 +434,7 @@ sub getShortcut {
|
|||
foreach my $override (keys %overrides) {
|
||||
$self->{_shortcut}{_properties}{$override} = $overrides{$override}{parsedValue};
|
||||
}
|
||||
$self->{_shortcut}{_properties}{showReloadIcon} = $self->get("showReloadIcon");
|
||||
}
|
||||
return $self->{_shortcut};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,6 +220,7 @@ sub view {
|
|||
dashletTitle=>$child->{_properties}{title},
|
||||
shortcutUrl=>$child->getUrl,
|
||||
canPersonalize=>$self->canPersonalize,
|
||||
showReloadIcon=>$child->{_properties}{showReloadIcon},
|
||||
canEditUserPrefs=>(($session{user}{userId} ne '1') && (ref $child eq 'WebGUI::Asset::Shortcut') && (scalar($child->getPrefFieldsToShow) > 0))
|
||||
});
|
||||
$newStuff .= 'available_dashlets["'.$child->getId.'"]=\''.$child->getUrl.'\';';
|
||||
|
|
@ -231,6 +232,7 @@ sub view {
|
|||
dashletTitle=>$child->{_properties}{title},
|
||||
shortcutUrl=>$child->getUrl,
|
||||
canPersonalize=>$self->canPersonalize,
|
||||
showReloadIcon=>$child->{_properties}{showReloadIcon},
|
||||
canEditUserPrefs=>(($session{user}{userId} ne '1') && (ref $child eq 'WebGUI::Asset::Shortcut') && (scalar($child->getPrefFieldsToShow) > 0))
|
||||
});
|
||||
$newStuff .= 'available_dashlets["'.$child->getId.'"]=\''.$child->getUrl.'\';';
|
||||
|
|
@ -252,6 +254,7 @@ sub view {
|
|||
content=>'',
|
||||
dashletTitle=>$child->getTitle,
|
||||
shortcutUrl=>$child->getUrl,
|
||||
showReloadIcon=>$child->{_properties}{showReloadIcon},
|
||||
canPersonalize=>$self->canPersonalize,
|
||||
canEditUserPrefs=>(($session{user}{userId} ne '1') && (ref $child eq 'WebGUI::Asset::Shortcut') && (scalar($child->getPrefFieldsToShow) > 0))
|
||||
});
|
||||
|
|
|
|||
|
|
@ -395,6 +395,16 @@ The word "Shortcut".</p>
|
|||
lastUpdated => 1133619940,
|
||||
},
|
||||
|
||||
'show reload icon' => {
|
||||
message => q|Show Reload Icon?|,
|
||||
lastUpdated => 1133619940,
|
||||
},
|
||||
|
||||
'show reload icon description' => {
|
||||
message => q|Whether or not to show the yellow reload dashlet icon on this Shortcut/Dashlet.|,
|
||||
lastUpdated => 1133619940,
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue