Skip to content

Commit

Permalink
correct account spacing when updating published content (fixes #1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Nov 16, 2017
1 parent 1fe4042 commit 4173df7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Expand Up @@ -632,7 +632,7 @@ private RSConnectAccount getSelectedAccount()
{
if (accountList_.isVisible())
return accountList_.getSelectedAccount();
else if (accountEntry_.isVisible())
else if (accountEntryPanel_.isVisible())
return accountEntry_.getAccount();
else
return null;
Expand Down Expand Up @@ -720,7 +720,7 @@ public void onError(ServerError error)
private void setSingleAccount(RSConnectAccount account)
{
accountEntry_.setAccount(account);
accountEntry_.setVisible(true);
accountEntryPanel_.setVisible(true);
}

private void populateAccountList(final ProgressIndicator indicator,
Expand Down Expand Up @@ -770,7 +770,7 @@ private void populateAccountList(final ProgressIndicator indicator,

// populate the accounts in the UI (the account display widget filters
// based on account criteria)
accountEntry_.setVisible(false);
accountEntryPanel_.setVisible(false);
publishToLabel_.setVisible(false);
int numAccounts = setAccountList(accounts);

Expand Down Expand Up @@ -1257,6 +1257,7 @@ private void showAppError(String error)
@UiField HTMLPanel newAppPanel_;
@UiField HTMLPanel rootPanel_;
@UiField HTMLPanel appErrorPanel_;
@UiField HTMLPanel accountEntryPanel_;
@UiField Image deployIllustration_;
@UiField Image descriptionImage_;
@UiField InlineLabel deployLabel_;
Expand Down
Expand Up @@ -59,9 +59,10 @@
text="Publish To Account:"
ui:field="publishToLabel_">
</g:Label>
<rsc:RSConnectAccountEntry styleName="{res.style.accountEntry}"
ui:field="accountEntry_">
</rsc:RSConnectAccountEntry>
<g:HTMLPanel styleName="{res.style.accountEntry}" ui:field="accountEntryPanel_">
<rsc:RSConnectAccountEntry ui:field="accountEntry_">
</rsc:RSConnectAccountEntry>
</g:HTMLPanel>
<g:HTMLPanel ui:field="newAppPanel_">
<g:Label styleName="{res.style.controlLabel}" ui:field="nameLabel_"
text="Title:"></g:Label>
Expand Down

0 comments on commit 4173df7

Please sign in to comment.