Fix UX Hit List items related to Activity Stream

This commit is contained in:
Marliana Lara
2017-07-25 17:29:30 -04:00
parent e904d47122
commit bd45b47445
4 changed files with 44 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
export default export default
function ShowDetail($filter, Find) { function ShowDetail($filter, Find, ParseTypeChange, ParseVariableString) {
return function (params, scope) { return function (params, scope) {
var activity_id = params.activity_id, var activity_id = params.activity_id,
@@ -20,6 +20,13 @@ export default
scope.operation = activity.description; scope.operation = activity.description;
scope.header = "Event " + activity.id; scope.header = "Event " + activity.id;
scope.variables = ParseVariableString(scope.changes);
scope.parseType = 'json';
ParseTypeChange({ scope: scope,
field_id: 'activity-stream-changes',
readOnly: true });
scope.parseTypeChange('parseType', 'variables');
// Open the modal // Open the modal
$('#stream-detail-modal').modal({ $('#stream-detail-modal').modal({
show: true, show: true,
@@ -35,4 +42,4 @@ export default
}; };
} }
ShowDetail.$inject = ['$filter', 'Find']; ShowDetail.$inject = ['$filter', 'Find', 'ParseTypeChange', 'ParseVariableString'];

View File

@@ -9,6 +9,7 @@
.StreamDetail-rowTitle { .StreamDetail-rowTitle {
color: @default-interface-txt; color: @default-interface-txt;
font-size: 12px;
} }
.StreamDetail-inlineRowTitle { .StreamDetail-inlineRowTitle {

View File

@@ -18,7 +18,14 @@
</div> </div>
<div ng-show="changes"> <div ng-show="changes">
<div class="StreamDetail-rowTitle StreamDetail-changesRowTitle" translate>CHANGES</div> <div class="StreamDetail-rowTitle StreamDetail-changesRowTitle" translate>CHANGES</div>
<pre class="StreamDetail-changes">{{ changes | json : spacing}}</pre> <textarea
rows="6"
ng-model="changes"
name="changes"
class="form-control Form-textArea Form-textAreaLabel Form-formGroup--fullWidth"
id="activity-stream-changes"
disabled="disabled">
</textarea>
</div> </div>
</div> </div>
<div class="Modal-footer"> <div class="Modal-footer">

View File

@@ -18,7 +18,6 @@ export default ['i18n', function(i18n) {
selectInstructions: '', selectInstructions: '',
index: false, index: false,
hover: true, hover: true,
"class": "table-condensed",
toolbarAuxAction: "<stream-dropdown-nav></stream-dropdown-nav>", toolbarAuxAction: "<stream-dropdown-nav></stream-dropdown-nav>",
fields: { fields: {