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

Disable page publish/view page buttons according to published_at #1498

Merged
merged 2 commits into from
Apr 26, 2019
Merged

Disable page publish/view page buttons according to published_at #1498

merged 2 commits into from
Apr 26, 2019

Conversation

westonganger
Copy link
Contributor

I was annoyed how the View Page button would allow you to click and get a page error when the page was not published. I would have much rather this button been disabled.

  • View Page / Publish buttons are disabled according to the published_at column
  • I moved the view page button next to the publish button to make more sense in context.

app/assets/stylesheets/alchemy/buttons.scss Outdated Show resolved Hide resolved
app/assets/stylesheets/alchemy/buttons.scss Outdated Show resolved Hide resolved
app/assets/stylesheets/alchemy/buttons.scss Outdated Show resolved Hide resolved
app/assets/stylesheets/alchemy/buttons.scss Outdated Show resolved Hide resolved
app/assets/stylesheets/alchemy/buttons.scss Outdated Show resolved Hide resolved
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

I like that, but think we can improve a little bit.

Also, please create two commits: one for moving the button the other one for changing its behavior.

app/views/alchemy/admin/pages/edit.html.erb Outdated Show resolved Hide resolved
app/views/alchemy/admin/pages/edit.html.erb Outdated Show resolved Hide resolved
app/assets/stylesheets/alchemy/buttons.scss Show resolved Hide resolved
@westonganger
Copy link
Contributor Author

Ok I will extract moving the button to another PR.

@tvdeyen
Copy link
Member

tvdeyen commented Oct 25, 2018

Ok I will extract moving the button to another PR.

@westonganger no need to. A commit in this PR is fine

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Still I think we should not disable the publish button.

app/views/alchemy/admin/pages/edit.html.erb Outdated Show resolved Hide resolved
app/views/alchemy/admin/pages/edit.html.erb Outdated Show resolved Hide resolved
@westonganger
Copy link
Contributor Author

Ok this should be up to snuff now.

@tvdeyen tvdeyen added this to the 4.2 milestone Apr 26, 2019
@tvdeyen tvdeyen merged commit 7c4f46c into AlchemyCMS:master Apr 26, 2019
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