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

Privacy toggler within create dataset dialog #5340

Merged
merged 20 commits into from
Sep 7, 2015
Merged

Privacy toggler within create dataset dialog #5340

merged 20 commits into from
Sep 7, 2015

Conversation

xavijam
Copy link
Contributor

@xavijam xavijam commented Sep 1, 2015

Basically it will let you to change the privacy of the import you want to start. But, if you don't have private_tables enabled under your user, it will redirect to your upgrade page when it is clicked.
For open source users that link will be disabled and it will show a "standard" text.
One important thing, by default, if user can create private datasets, the privacy value will be "PRIVATE", if the user can create private tables, of course, the value will be "PUBLIC".

Example:

privacy_toggler


We should review the texts of the tooltips cc @csobier @javierarce.


Possibility to change the privacy:

screen shot 2015-09-01 at 17 36 26

Upgrade:

screen shot 2015-09-01 at 18 55 07

Fixes #3111
REVIEWER: @alonsogarciapablo
cc @javierarce @saleiva

@xavijam
Copy link
Contributor Author

xavijam commented Sep 1, 2015

Deployed in staging ruis

@saleiva
Copy link
Contributor

saleiva commented Sep 2, 2015

@javier could you take a quick look to this, specially to the texts?

@alonsogarciapablo
Copy link
Contributor

Code looks good great to me! I've done some QA locally and works as expected. So 👍

@javierarce what do you think?

@javierarce
Copy link
Contributor

👍 code looks good to me. I'm going to review the texts before merging.

<button type="button" class="PrivacyToggler js-toggler PrivacyToggler--<%- privacy %> <%- isDisabled ? 'is-disabled' : '' %>"
data-title="
<% if (!isDisabled) { %>
Your new dataset will be <%- privacy.toLowerCase() %>. Click to change it to <%- nextPrivacy.toLowerCase() %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a new line here, so "Click" appears in the next line.

Copy link
Contributor

Choose a reason for hiding this comment

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

screen shot 2015-09-04 at 15 56 13

screen shot 2015-09-04 at 15 56 07

@javierarce
Copy link
Contributor

You're totally right, I'll make the change.

javierarce added a commit that referenced this pull request Sep 7, 2015
Privacy toggler within create dataset dialog
@javierarce javierarce merged commit f2afeef into master Sep 7, 2015
@javierarce javierarce deleted the issue-3111 branch September 7, 2015 07:13
@xavijam
Copy link
Contributor Author

xavijam commented Sep 7, 2015

👏 👏

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.

4 participants