-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3032 support favorites in path selector (#3173)
* Adds favorites column to path_selector modal * Lists filePickerFavorites in Favorites section of path selector * Makes favorites work with filePickerFavorites - rough * Adds list of favorites as defined by OodFilesApp * Removes debug cruft * Uses partial for favorites in path_selector * Changes interface expectation for favorites, uses files_path helper * Fixes variable declaration in js * Removes unnecessary fs fallback in view * Accepts 'favorites: false' or undefined favorites * Moves logic for defining favorites to helper * Allow for favorites: false to hide favorites entirely * Changes .fetch to .try so we can differentiate 'false' from 'nil' for favorites * Fixes try method call * Fixes logic in helper, fixes styling
- Loading branch information
1 parent
d291b21
commit 4036038
Showing
5 changed files
with
83 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
apps/dashboard/app/views/batch_connect/session_contexts/_favorites.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<li role='button' | ||
class='clickable text-wrap list-group-item' | ||
data-api-url=<%= files_path(path.to_s, fs: path.filesystem) %>> | ||
<span class='fa fa-folder'> </span><%= path %> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters