Merge "ChangeScreen2: Hide strategy row if no strategy is displayed"
This commit is contained in:
@@ -143,6 +143,7 @@ public class ChangeScreen2 extends Screen {
|
|||||||
@UiField Image projectQuery;
|
@UiField Image projectQuery;
|
||||||
@UiField InlineHyperlink projectLink;
|
@UiField InlineHyperlink projectLink;
|
||||||
@UiField InlineHyperlink branchLink;
|
@UiField InlineHyperlink branchLink;
|
||||||
|
@UiField Element strategy;
|
||||||
@UiField Element submitActionText;
|
@UiField Element submitActionText;
|
||||||
@UiField Element notMergeable;
|
@UiField Element notMergeable;
|
||||||
@UiField Topic topic;
|
@UiField Topic topic;
|
||||||
@@ -796,6 +797,8 @@ public class ChangeScreen2 extends Screen {
|
|||||||
|
|
||||||
if (current) {
|
if (current) {
|
||||||
loadSubmitType(info.status(), canSubmit);
|
loadSubmitType(info.status(), canSubmit);
|
||||||
|
} else {
|
||||||
|
setVisible(strategy, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
@@ -419,7 +419,7 @@ limitations under the License.
|
|||||||
<th><ui:msg>Topic</ui:msg></th>
|
<th><ui:msg>Topic</ui:msg></th>
|
||||||
<td><c:Topic ui:field='topic'/></td>
|
<td><c:Topic ui:field='topic'/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr ui:field='strategy'>
|
||||||
<th><ui:msg>Strategy</ui:msg></th>
|
<th><ui:msg>Strategy</ui:msg></th>
|
||||||
<td>
|
<td>
|
||||||
<span ui:field='submitActionText'/>
|
<span ui:field='submitActionText'/>
|
||||||
|
|||||||
Reference in New Issue
Block a user