Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMT-3392: Update MMT to use the new react crud forms for services #1073

Merged
merged 5 commits into from
Sep 11, 2023

Conversation

dmistry1
Copy link
Collaborator

@dmistry1 dmistry1 commented Sep 6, 2023

No description provided.

@@ -3,14 +3,17 @@
<% end %>

<div class="grid-row row-content">
<% if (resource_name == 'tool_draft' or resource_name == 'variable_draft') and Rails.configuration.react_forms_enabled %>
<% if (resource_name == 'tool_draft' or resource_name == 'variable_draft' or resource_name == 'service_draft') and Rails.configuration.react_forms_enabled %>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove resource_name check

@@ -7,7 +7,7 @@
<% elsif @unconfirmed_version %>
<%= render partial: 'drafts/shared/unconfirmed_version' %>
<% else %>
<% if (resource_name == 'tool_draft' or resource_name == 'variable_draft') and Rails.configuration.react_forms_enabled %>
<% if (resource_name == 'tool_draft' or resource_name == 'variable_draft' or resource_name == 'service_draft') and Rails.configuration.react_forms_enabled %>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove resource_name

@@ -93,7 +93,7 @@ class NavigationView extends React.Component<NavigationViewProps, NavigationView
editor.saveDraft(draft).then((draft) => {
editor.draft = draft
this.setState({ saving: false })
if (editor.documentType === 'variable_drafts') {
if (editor.documentType === 'variable_drafts' || editor.documentType === 'service_draft') {
Copy link
Collaborator Author

@dmistry1 dmistry1 Sep 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment to remove serviceDraft check

@dmistry1 dmistry1 merged commit 8da0082 into master Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants