-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add warning to pin to frontpage #4999
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
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.
LGTM!
498eed2
to
15af74b
Compare
LGMT! |
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.
LGTM! Talked to Falk and it doesn't seem like there will be a document for it - so we can just merge this now and rather update it if anything should change
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.
Nice!😍 Some nitpicks
@@ -179,6 +180,15 @@ const ArticleEditor = () => { | |||
type="checkbox" | |||
component={CheckBox.Field} | |||
/> | |||
{values.pinned && ( | |||
<Card style={{ marginTop: 0 }} severity="warning"> |
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.
Ideally we don't want any inline styling
{values.pinned && ( | ||
<Card style={{ marginTop: 0 }} severity="warning"> | ||
<span> | ||
OBS! Du må ha godkjenning fra ledelsen for å feste til |
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.
Could the "obs" be in a Card.Header
so that it matches other cards better?😁
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.
Done!
<Card style={{ marginTop: 0 }} severity="warning"> | ||
<span> | ||
OBS! Du må ha godkjenning fra ledelsen for å feste til forsiden. | ||
</span> |
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.
See other comments
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.
Juni and I concluded that the syling wasn't necessary so we removed it:)
Description
Add warning under "fest til forsiden" to make i clear you need permission to pin.
Applies to article- and event-editing.
Result
If you've made visual changes, please check the boxes below and include images showing the changes. Descriptions are appreciated.
Testing
Please describe what and how the changes have been tested, and provide instructions to reproduce if necessary.
Resolves: ABA-1077