-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
app/views/drafts/new.html.erb
Outdated
@@ -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 %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove resource_name check
app/views/drafts/edit.html.erb
Outdated
@@ -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 %> |
There was a problem hiding this comment.
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') { |
There was a problem hiding this comment.
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
No description provided.