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
Enhancements for flexbox on smaller screens #6222
Enhancements for flexbox on smaller screens #6222
Conversation
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.
A couple of small changes.
@@ -80,6 +80,7 @@ class FormBuilderModal extends SilverStripeComponent { | |||
* @returns {Promise} | |||
*/ | |||
handleSubmit(data, action, submitFn) { | |||
console.log(data, action, submitFn); |
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.
no.
this.handleBackClick = this.handleBackClick.bind(this); | ||
} | ||
|
||
handleBackClick(event) { |
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.
If onBack isn't supplied, it will just have a no-op. I think we should throw an error if onBack isn't set and the button is clicked.
Alternatively, if onBack isn't supplied, remove the back button altogether.
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.
@flamerohr ^ is something you can look at
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.
good point, I think removing the back button makes sense, gives the option of not having the back button then
368399e
to
a0f10c8
Compare
Fix back button in preview Fix add to campaign in pages section
a0f10c8
to
a5d3dcc
Compare
I've fixed the list view, will push shortly. |
@tractorcow In regards to showing the first and last column in grid fields, the problem is that all grid fields are composed differently so you can't always say what is first or last (eg page list has toggle first). With the Campaigns grid field I know there are two sets of actions at the end so I can show them, I also know they fit at a mobile screen size where-as other actions are sometimes accompanied by text which can break the layout. Actions are available once you select an item and go deeper so we are not removing functionality. |
59666c2
to
4cc6cc3
Compare
Fix FormBuilderLoader not chaining promise
It was a conscious decision to use text to support the back arrow in the Campaign preview because it doesn't sit next to the inner page navigation like breadcrumbs or page name. Not a big deal really if I did remove the text but I think its better to decide that when we introduce the rest of the preview editing actions and draft/publish toggle. |
Fixes #6164
Requires Framework, CMS, AssetAdmin, Site-config branches of features/4.0/responsive-improvements