-
Notifications
You must be signed in to change notification settings - Fork 156
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
File actions can be defined using config settings #2651
Conversation
8de4356
to
b8f2887
Compare
💥 Acceptance tests iPhone failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7050/
|
💥 Acceptance tests XGAPortrait failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7050/
|
💥 Acceptance tests SharingPublic failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7050/
|
💥 Acceptance tests Files failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7050/
|
💥 Acceptance tests Notifications failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
💥 Acceptance tests PrivateLinks failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
💥 Acceptance tests Login failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
💥 Acceptance tests Account failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
💥 Acceptance tests Favorites failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
💥 Acceptance tests SharingNotifications failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
💥 Acceptance tests RestrictSharing failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7055/
|
apps/files/src/default.js
Outdated
@@ -22,6 +22,7 @@ const appInfo = { | |||
icon: 'folder', | |||
isFileEditor: false, | |||
extensions: [], | |||
fileActions: window.phoenixConfig.files.actions, |
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.
accessing the window object here feels a bit hacky.
it should be possible to inject the config by adjusting this file to be a big function(phoenixConfig)
that returns the objects that we currently return in the default export.
the caller should then detect if we returned a function, if yes call it with injection. else assume it's an object
(and I wonder if this will stay relevant once we switch to a separate phoenix-files app)
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.
(and I wonder if this will stay relevant once we switch to a separate phoenix-files app)
I dont think so .... initialization of code like this will happen in a vue component and the config is living in the store then.
So from my pov this is an acceptable work around for the time being.
furthermore: I have no damn clue why ci is failing .... |
@DeepDiver1975, The page is empty and is throwing the following error in console. Probably, actions has to be mentioned in the config.
|
b8f2887
to
db3f64d
Compare
💥 Acceptance tests PrivateLinks failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
💥 Acceptance tests Notifications failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
💥 Acceptance tests Login failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
💥 Acceptance tests Account failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
💥 Acceptance tests SharingNotifications failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
💥 Acceptance tests SharingExternal failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
💥 Acceptance tests SharingFilePermissionsGroups failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7090/
|
db3f64d
to
4d235dd
Compare
THX a lot @skshetry - it is really a pity that we don't see such errors in drone anywhere .... |
4d235dd
to
55444a9
Compare
💥 Acceptance tests iPhone failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7125/
|
💥 Acceptance tests Trashbin failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7125/
|
💥 Acceptance tests SharingAutocompletion failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7125/
|
💥 Acceptance tests Resharing failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7125/
|
💥 Acceptance tests SharingPermissionsUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7125/
|
💥 Acceptance tests SharingPermissionsUsers failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7129/
|
💥 Acceptance tests iPhone failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7129/
|
💥 Acceptance tests SharingAutocompletion failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7129/
|
💥 Acceptance tests Resharing failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7129/
|
💥 Acceptance tests Trashbin failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/7129/
|
55444a9
to
c9985e8
Compare
c9985e8
to
96fca1f
Compare
Description
Prototype to show how #2573 could work
For the file action POC please add this json snippet to config.json
Related Issue
#2573
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Now with external svg icon:
Types of changes
Checklist:
Open tasks: