BUG-14034 Status in Dashboards -NEW FEATURE
In ADMIN > Settings > Dashboard now is available the button Status, this button let Activate or Deactivate the Dashlet, showing the changed status in the Status Field in the grid. When a dashlet is Inactive this dashlet is not showed in the DASHBOARDS tab. A validation was added to only let the current user see the active dashlets assigned to himself.
This commit is contained in:
@@ -175,7 +175,8 @@ Ext.onReady(function(){
|
||||
{name : 'DAS_VERSION'},
|
||||
{name : 'DAS_INS_OWNER_TITLE'},
|
||||
{name : 'DAS_INS_UPDATE_DATE'},
|
||||
{name : 'DAS_INS_STATUS_LABEL'}
|
||||
{name : 'DAS_INS_STATUS_LABEL'},
|
||||
{name : 'DAS_INS_STATUS'}
|
||||
]
|
||||
}),
|
||||
sortInfo: {
|
||||
@@ -389,7 +390,7 @@ statusDashletInstance = function(){
|
||||
if( rows.length > 0 ) {
|
||||
for(i=0; i<rows.length; i++) {
|
||||
var status;
|
||||
if(rows[i].data.DAS_INS_STATUS_LABEL == "Active"){
|
||||
if(rows[i].data.DAS_INS_STATUS == 1){
|
||||
status = 0;
|
||||
} else {
|
||||
status = 1;
|
||||
|
||||
Reference in New Issue
Block a user