-
Notifications
You must be signed in to change notification settings - Fork 51
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
Supplemental file add/remove UI #4080
Conversation
Dananji
commented
Apr 9, 2020
•
edited
Loading
edited
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.
👍 This looks good!
I had a few questions/suggestions for cleanup.
@@ -211,6 +255,13 @@ Unless required by applicable law or agreed to in writing, software distributed | |||
$('#' + target).toggleClass('hidden'); | |||
}); | |||
|
|||
$('.files_toggle').on('click', function (e) { |
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.
Should this one line be unindented? It looks odd as it is right now.
app/assets/stylesheets/avalon.scss
Outdated
div.transcript_file_view { | ||
display: flex; | ||
} |
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.
It doesn't look like this is used. Can it be removed?
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.
Yes, good catch 👍
inputField.focus(); | ||
}); | ||
|
||
$('button[name="label_edit_cancel"]').on('click', e => { |
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.
For consistency would it make sense to rename this button cancel_edit_label
?
// Page reload to show the flash message | ||
location.reload(); |
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.
I wonder if it is really necessary to reload the page for a label update. Maybe an inline indication of success would be better? But I'd wait on feedback from PO before changing this since it looks like it already works.
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.
Yeah, that sounds good to me. Now that I think about it, some inline edit forms do not have feedback flash messages (e.g. editing markers in playlists, add to playlist in item page. these are the inline forms I can think of right now).
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.
I think this is ready now but I think it makes sense for it to wait to be merged until the model/controller PR has been merged (which will hopefully be soon). Is that okay with you?
Yes I agree 💯 |