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

More contextually relevant button labels #2104

Closed
jancborchardt opened this issue Nov 14, 2016 · 5 comments
Closed

More contextually relevant button labels #2104

jancborchardt opened this issue Nov 14, 2016 · 5 comments
Labels
1. to develop Accepted and waiting to be taken care of design Design, UI, UX, etc. enhancement

Comments

@jancborchardt
Copy link
Member

For example in the case of this modal:
administration_-nextcloud-_2016-10-31_12 15 50

The button labels »Yes« and »No« are pretty stupid. Instead the »Yes« button should say »Yes, add trusted domain«.

@nickvergessen since you said the JS only has these options, we should make it possible to pass custom labels which make more sense than a stupid »Yes«, »No« and »OK«.

cc @nextcloud/designers @nextcloud/javascript

@jancborchardt jancborchardt added 1. to develop Accepted and waiting to be taken care of design Design, UI, UX, etc. enhancement labels Nov 14, 2016
@skjnldsv
Copy link
Member

Also fix the translation? "Are you really sure that you want to add..."?

@comradekingu
Copy link
Contributor

comradekingu commented Sep 24, 2017

To me it seems odd to repeat the notion of adding.

trustdomain

Edit: I think just the http part should be orange, if that is meant to signal some kind of danger.

@jancborchardt
Copy link
Member Author

Well, still the button should not say only "Yes" and the content could be a tad more verbose:

Add https://… as trusted domain?

Yes, trust this domain

@nickvergessen
Copy link
Member

The button description is hackable atm:

server/core/js/js.js

Lines 1706 to 1713 in 086ce70

).then(function() {
var $dialog = $('.oc-dialog:visible');
$dialog.find('.ui-icon').remove();
var $buttons = $dialog.find('button');
$buttons.eq(0).text(t('core', 'Cancel'));
$buttons.eq(1).text(t('core', 'Confirm'));
});

But yeah maybe some JS expert rewrites our Dialogs into something that also allows to provide the button labels directly.

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@skjnldsv skjnldsv removed stale Ticket or PR with no recent activity labels Jun 12, 2019
@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

I think this is already implemented at many places -> closing.

@szaimen szaimen closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of design Design, UI, UX, etc. enhancement
Projects
None yet
Development

No branches or pull requests

6 participants