This commit is contained in:
parent
f6e1ffa849
commit
4abc8521d3
|
@ -2,7 +2,7 @@ import ngModule from '../../module';
|
||||||
import Component from 'core/lib/component';
|
import Component from 'core/lib/component';
|
||||||
import './style.scss';
|
import './style.scss';
|
||||||
|
|
||||||
const maxStrLen = 50;
|
const maxStrLen = 512;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays pretty JSON value.
|
* Displays pretty JSON value.
|
||||||
|
|
|
@ -75,17 +75,14 @@
|
||||||
class="attributes">
|
class="attributes">
|
||||||
<span ng-if="!log.expand" ng-repeat="prop in ::log.props"
|
<span ng-if="!log.expand" ng-repeat="prop in ::log.props"
|
||||||
class="basic-json">
|
class="basic-json">
|
||||||
<span class="json-field"
|
<span class="json-field" title="{{::prop.name}}">
|
||||||
title="{{::prop.name}}">
|
|
||||||
{{::prop.nameI18n}}:
|
{{::prop.nameI18n}}:
|
||||||
</span>
|
</span>
|
||||||
<vn-json-value value="::$ctrl.mainVal(prop, log.action)"></vn-json-value><span ng-if="::!$last">,</span>
|
<vn-json-value value="::$ctrl.mainVal(prop, log.action)"></vn-json-value><span ng-if="::!$last">,</span>
|
||||||
</span>
|
</span>
|
||||||
<div ng-if="log.expand"
|
<div ng-if="log.expand" class="expanded-json">
|
||||||
class="expanded-json">
|
|
||||||
<div ng-repeat="prop in ::log.props">
|
<div ng-repeat="prop in ::log.props">
|
||||||
<span class="json-field"
|
<span class="json-field" title="{{::prop.name}}">
|
||||||
title="{{::prop.name}}">
|
|
||||||
{{::prop.nameI18n}}:
|
{{::prop.nameI18n}}:
|
||||||
</span>
|
</span>
|
||||||
<vn-json-value value="::$ctrl.mainVal(prop, log.action)"></vn-json-value>
|
<vn-json-value value="::$ctrl.mainVal(prop, log.action)"></vn-json-value>
|
||||||
|
|
|
@ -144,9 +144,6 @@ vn-log {
|
||||||
& > .no-changes {
|
& > .no-changes {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
.json-field {
|
|
||||||
text-transform: capitalize;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue