Merge "Put robot comment actions inside a dom-if template"

This commit is contained in:
Wyatt Allen
2018-02-21 01:45:56 +00:00
committed by Gerrit Code Review

View File

@@ -309,15 +309,17 @@ limitations under the License.
</div>
</div>
<div class="actions robotActions" hidden$="[[!_showRobotActions]]">
<gr-endpoint-decorator name="robot-comment-controls">
<gr-endpoint-param name="comment" value="[[comment]]">
</gr-endpoint-param>
</gr-endpoint-decorator>
<gr-button link class="action fix"
on-tap="_handleFix"
disabled="[[robotButtonDisabled]]">
Please Fix
</gr-button>
<template is="dom-if" if="[[isRobotComment]]">
<gr-endpoint-decorator name="robot-comment-controls">
<gr-endpoint-param name="comment" value="[[comment]]">
</gr-endpoint-param>
</gr-endpoint-decorator>
<gr-button link class="action fix"
on-tap="_handleFix"
disabled="[[robotButtonDisabled]]">
Please Fix
</gr-button>
</template>
</div>
</div>
</div>