Skip to content

Commit

Permalink
[FIX] Manual Register use correct state for determining registered (#…
Browse files Browse the repository at this point in the history
…16726)

* Fix: Manual Register api call

* show button using correct condition

* Removed '-->' from modal

Co-authored-by: Douglas Gubert <d-gubert@users.noreply.github.com>
  • Loading branch information
geekgonecrazy and d-gubert authored Feb 27, 2020
1 parent 8fa4b2e commit 6f0e929
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/server/v1/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ API.v1.addRoute('cloud.manualRegister', { authRequired: true }, {

const registrationInfo = retrieveRegistrationStatus();

if (registrationInfo.connectToCloud) {
if (registrationInfo.workspaceRegistered) {
return API.v1.failure('Workspace is already registered');
}

Expand Down
2 changes: 1 addition & 1 deletion app/cloud/client/admin/cloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<section class="page-container page-home page-static page-settings">
{{#header sectionName="Connectivity_Services" hideHelp=true fixedHeight=true fullpage=true}}
<div class="rc-header__section-button">
{{#unless info.connectToCloud}}
{{#unless info.workspaceRegistered}}
<button class="rc-button rc-button--small rc-button--primary rc-button--outline js-register">
{{_ "Cloud_Register_manually"}}
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/ui-utils/client/lib/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dialog class="rc-modal rc-modal--{{modifier}}" data-modal="modal">

{{# if template}}
{{> Template.dynamic template=template data=data}} -->
{{> Template.dynamic template=template data=data}}
{{else}}
<header class="rc-modal__header">
<h1 class="rc-modal__title">
Expand Down

0 comments on commit 6f0e929

Please sign in to comment.