Merge "Prevent 'merged as sadface'"
This commit is contained in:
@@ -255,12 +255,14 @@ limitations under the License.
|
|||||||
<a href$="[[_computeChangePermalink(_change._number)]]">[[_change._number]]</a><!--
|
<a href$="[[_computeChangePermalink(_change._number)]]">[[_change._number]]</a><!--
|
||||||
--><template is="dom-if" if="[[_changeStatus]]">
|
--><template is="dom-if" if="[[_changeStatus]]">
|
||||||
([[_changeStatus]]<!--
|
([[_changeStatus]]<!--
|
||||||
--><template is="dom-if" if="[[_computeShowCommitInfo(_changeStatus)]]">
|
--><template
|
||||||
|
is="dom-if"
|
||||||
|
if="[[_computeShowCommitInfo(_changeStatus, _change.current_revision)]]">
|
||||||
as
|
as
|
||||||
<gr-commit-info
|
<gr-commit-info
|
||||||
change="[[_change]]"
|
change="[[_change]]"
|
||||||
commit-info="[[_computeMergedCommitInfo(_change.current_revision, _change.revisions)]]"
|
commit-info="[[_computeMergedCommitInfo(_change.current_revision, _change.revisions)]]"
|
||||||
server-config="[[serverConfig]]"></gr-commit-info><!--
|
server-config="[[serverConfig]]"></gr-commit-info><!--
|
||||||
--></template><!--
|
--></template><!--
|
||||||
-->)<!--
|
-->)<!--
|
||||||
--></template><!--
|
--></template><!--
|
||||||
|
@@ -563,8 +563,8 @@
|
|||||||
return statusString || '';
|
return statusString || '';
|
||||||
},
|
},
|
||||||
|
|
||||||
_computeShowCommitInfo: function(changeStatus) {
|
_computeShowCommitInfo: function(changeStatus, current_revision) {
|
||||||
return changeStatus === 'Merged';
|
return changeStatus === 'Merged' && current_revision;
|
||||||
},
|
},
|
||||||
|
|
||||||
_computeMergedCommitInfo: function(current_revision, revisions) {
|
_computeMergedCommitInfo: function(current_revision, revisions) {
|
||||||
|
Reference in New Issue
Block a user