-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[WIP] Share dialog files sidebar #18078
Conversation
Currently it is possible to set a negative number of days in which a public share expires. This results in public sharing not working and it undesired. Weird thing is that the API still lets you create shares and gives back an URL. However the id is "unkown" and the URL invalid.
Storage status is saved in the database. Failed storages are rechecked every 10 minutes, while working storages are rechecked every request. Using the files_external app will recheck all external storages when the settings page is viewed, or whenever an external storage is saved.
This usually doesn't cause issues, but in unit tests sometimes a wrapped storage is passed to Filesystem::mount() and gets rewrapped, hitting the XDebug function nesting level limit when used.
} | ||
|
||
.shareTabView input[type="text"], .shareTabView input[type="password"] { | ||
width: 91%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's some nice precise value you have here 😉
Great progress, it already looks much better than the old dialog code 😄 |
@@ -368,6 +374,21 @@ OC.Share={ | |||
}); | |||
}, | |||
showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions, filename) { | |||
var itemModel = new OC.Share.ShareItemModel(itemType, itemSource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here call OC.Share.loadItem() which is still sync ajax, then inject it into the model.
However in the sidebar it needs to be async, so probably need to rewrite another OC.Share.loadItem
1d30248
to
d1439ec
Compare
Adding header support to class OC_OCS_Result
Store storage availability in database
Do not allow invalid default expire days
Add \OCP\ISession to AppFramework
Make sure to hide empty content message when mask is shown
Fix removal of share permissions when share disabled for user
3347061
to
1e5dcec
Compare
Use the new IteratorDirectory instead of the fakedir wrapper
* This should allow the capabilities to be intergrated into the appframework * Unit tests * Throw exception if closure does not return ICapability instance
* Files * Files_Sharing * Files_Trashbin * Files_Versions
tagName: 'div', | ||
|
||
initialize: function() { | ||
if(!this.model instanceof OC.Share.ShareItemModel) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beware that JS cannot detect subclasses this way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(because there are no subclasses in JS, just prototype duplication)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Basic work for right sidebar
The sidebar was merged, you might want to rebase. |
Check if archive contains a directory named like appid
Capabilities manager
isaacs/github#18 sigh I will rebase and open a PR against master a little later to-:night_with_stars: |
155b366
to
09b20f7
Compare
This is not the PR you are looking for. You go here #18185 |
supposed to implement #17665
currently this is based on files-rightsidebar
cc @PVince81