Repository navigation
Improved external share dialog - #9415
Conversation
|
@jancborchardt if you really want the main button on the left you'll have to tweak the CSS of the dialogs to make it so for ALL dialogs. |
There was a problem hiding this comment.
maybe return the dialog from the promise so we dont have to do a global selector
There was a problem hiding this comment.
How to do that ? You seemed to be an expert with promises. Feel free to make the change.
|
It’s ok if the »No«/»Decline« button is floated left on all dialogs. In which file should I put that code though? … |
|
I have no idea... usually what I do is used the CSS inspector of Chrome, and that tells me which file to edit. There seems to be a |
|
@PVince81 pushed wording and styling fixes. I need help from you on 2 things:
|
|
🚀 Test Passed. 🚀 |
|
I can't test this due to #9416 |
|
@jancborchardt hmm... it's not possible to use tags in the message, maybe you noticed already. |
|
@PVince81 ok, your call on that, whether we should do it. It would increase the user experience a lot, but maybe too much hackery? |
|
@jancborchardt I tried hacking the dialog and it's getting out of hand. I'll remove the close button and look at the buttons issue that @icewind1991 mentionned. |
|
@icewind1991 @jancborchardt arghhhh, the dialog code is even more messy than I thought: when you click on a button, it will first delete the buttons and re-create them: https://github.com/owncloud/core/blob/master/core/js/jquery.ocdialog.js#L129 It looks like those dialogs have an auto-immune system that doesn't let people mess with them that easily... |
|
Correction: it seems to try and set the "primary" class on the clicked button. @jancborchardt it means that your CSS hack for buttons alignment cannot work |
|
@PVince81 well, if the clicked button gets assigned the »primary« class, that’s the real problem. The cancel button should never be blue. |
|
So, when this is merged, we will not have any language 100% translated with ownCloud 7 as there are new strings :). @DeepDiver1975 what about doing one more pull just before 1 day of the release? I can pull manually and do a PR for it. |
|
I think we still have some time before the release to fix the strings. :-) |
|
@karlitschek Yes, but currently all pulled strings are for ownCloud 8, but we will release the stable7 branch right? :) |
There was a problem hiding this comment.
t('files_sharing', 'Add remote share')
t('files_sharing', 'Cancel')
|
true. @DeepDiver1975 Any advice? |
Default dialog button is now on the right, other one on the left.
Changed title, label and buttons. Removed icon.
|
Rebased and squashed:
You can test this by entering this in the browser console: External share dialog: Set "true" to "false" to remove the password field. Note, I cannot format the text or replace it with formatted text without messing everything up. The dialog implementation is just too resistant... |
|
👍 tested |
|
The inspection completed: No issues found |
|
Looks good. I just can test the dialog and redirects, but not the actual mounting. 👍 |
|
🚀 Test Passed. 🚀 |
Improved external share dialog



OC.dialogs now returns the promise to make it possible for the called to
do additional operations after the promise is resolved.
Changed title, label and buttons.
Removed icon.
Please review @owncloud/designers @icewind1991 @schiesbn
Feel free to push if you want to change the wording.
The best way to test it is to comment out the line with
location.hrefinexternal.jsto force the dialog appearing every time on refresh. (convenient for testing)Edit: removed wrong screenshot