Commit c2c05d67 by Kalyani Committed by nixonrodrigues

ATLAS-1832: If no attribute is present in tag then showing edit-button for a tag…

ATLAS-1832: If no attribute is present in tag then showing edit-button for a tag in tags tab on entity page. Signed-off-by: 's avatarnixonrodrigues <nixon@apache.org>
parent 894a91f6
......@@ -23,4 +23,4 @@
<tbody data-id="auditValue">
</tbody>
</table>
<h3 data-id="noData" style="display:none">No details to show</h3>
<h4 data-id="noData" style="display:none">No details to show</h4>
......@@ -155,11 +155,16 @@ define(['require',
sortable: false,
formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
fromRaw: function(rawValue, model) {
return '<button class="btn btn-atlasAction btn-atlas no-margin-bottom typeLOV" data-id="delete" data-name="' + model.get('typeName') + '"><i class="fa fa-trash"></i></button> <button class="btn btn-atlasAction btn-atlas no-margin-bottom typeLOV" data-id="edit" data-name="' + model.get('typeName') + '"><i class="fa fa-pencil"></i></button>';
var deleteData = '<button class="btn btn-atlasAction btn-atlas no-margin-bottom typeLOV" data-id="delete" data-name="' + model.get('typeName') + '"><i class="fa fa-trash"></i></button>',
editData = '<button class="btn btn-atlasAction btn-atlas no-margin-bottom typeLOV" data-id="edit" data-name="' + model.get('typeName') + '"><i class="fa fa-pencil"></i></button>';
if (model.get('attributes') === undefined) {
return deleteData;
} else {
return deleteData + editData;
}
}
})
},
},
this.tagTermCollection);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment