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

Issue columns #14

Merged
merged 3 commits into from May 23, 2016
Merged

Issue columns #14

merged 3 commits into from May 23, 2016

Conversation

etdsoft
Copy link
Member

@etdsoft etdsoft commented May 23, 2016

  • Detect the list of fields that the different Issues have and render all of them as columns in the Issues#index table.
  • Allow the user to show/hide the different columns.
  • Store the selection of columns in a per-user, per-project manner.

@@ -21,8 +22,13 @@ class IssueTable
@$column_menu.find('a').on 'click', @onColumnPickerClick

loadColumnState: =>
# TODO: persist this in browser local storage or a cookie
@selectedColumns = ['title', 'tags', 'affected']
if typeof(Storage) != "undefined"
Copy link
Contributor

Choose a reason for hiding this comment

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

You could just use coffeescript's existential operator here:

if Storage?

@gregmolnar
Copy link
Contributor

What about using cookie storage as a backup if there local storage is not supported by the browser?

@gregmolnar
Copy link
Contributor

I just checked the browser support of localstorage and I think it wouldn't worth to implement a cookie based version as it is pretty widely supported: http://caniuse.com/#search=localstorage.
So ignore my previous comment.

@etdsoft etdsoft merged commit 0c96075 into master May 23, 2016
@etdsoft etdsoft deleted the issue-columns branch April 19, 2017 10:41
sean-yeoh pushed a commit that referenced this pull request Aug 24, 2022
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.

None yet

2 participants