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
AppSettings: Add FilePicker for notesPath #990
Conversation
NcAppNavigationSettings has a |
Thanks for that hint! If I am not mistaken it expects a string or array of CSS selectors. I determined that the main div from the FilePicker modal is
So I did:
In difference to the deprecated It does compile, but has no effect. |
I haven't used that yet. The only occurrence I could find was the deprecated property in the calendar app: https://github.com/nextcloud/calendar/blob/main/src/components/AppNavigation/Settings.vue#L23 |
Is it possible that we don't use nextcloud-vue 7.8.2 but some earlier version ? As you can see in my gif I am using |
Right we are still on 7.3 there, let me check why dependabot is not suggesting an update there https://github.com/nextcloud/notes/blob/master/package.json#L22 |
#999 needs a bit more of testing but I'll try to get to that later today. |
Automation was faster but seems to work fine with the upgrade. Feel free to rebase your branch and try if that solves it. |
Strangely with nextcloud/vue 7.8.2 none of the exclusion properties works.. In 7.3 I am pretty sure it is related to the the click event on the table row But I can't explain why nothing works out right now.
I need to experiment even more here to fix that bug (it feels like one) |
I had second thoughts about this. So I guess this is also a design decision. I think I want to kind of ask if this worths the effort.. Edit: In the current version changing the notes path is the only option closing the settings menu due to reload. Which is needed to reload the new files if I am correct. |
I only recently took over maintenance of the app so I cannot really tell much about previous design decisions, but would agree with you that closing the settings is not really a problem here then. Also nextcloud apps in general are more often moving away from the small settings area and towards a dedicated settings dialog. The reload might also be only needed for historical reasons, but that might be a different story. Overall I'd be totally fine with getting this in without keeping the settings opened. :) |
I did add a rather dirty workaround. Dirty because I temper with the style settings and because it is visual. I'm also fine with removing the workaround. The point it is weird is, if you abort the file select via the upper right X, than you have to click twice for closing the settings. |
I could also try in an additional PR to move the app settings into personial setting page Or did you mean a modal window for settings like in the files app ? |
for NCAppNavigationSettings excludeClickOutsideSelectors Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
close in favour of #1003 |
Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
Signed-off-by: Jonathan Pagel <jonny_tischbein@systemli.org>
I created an drawft for #969 and added a FilePicker for the notesPath.
The problem I encounter is that the settings menu will be closed when clicking inside in the file picker modal.
I am unsure where it is triggered and how to prevent it. My guess it that is inherits the behaviour from NcAppNavigationSettings.
Can you help me out ?
Here a gif from my work: