-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: Add UI elements to modify navigation display #1295
feat: Add UI elements to modify navigation display #1295
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
ac42f69
to
ccf873b
Compare
e0b033f
to
215ca74
Compare
ccf873b
to
8075a22
Compare
52553e6
to
37e8272
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0edd48a
to
cd00c05
Compare
cd00c05
to
bc6ae95
Compare
4986b0f
to
0e62738
Compare
99b8922
to
40a2485
Compare
2f01848
to
93126f1
Compare
40a2485
to
c144b4e
Compare
e863887
to
ab66fcc
Compare
Okay. Took a long time, but this finally works (from my tests). If others confirm, we should be good to merge it (after adding tests). UI looks like this: @jancborchardt |
One little thing needed: with switching away from the three modes to just two modes, we also have to remove this condition: tables/lib/Db/ContextMapper.php Lines 189 to 190 in 4b7e5a7
Otherwise a share owner cannot remove the entry for themselves. Works fine then! In the backend, we should remove the third option, now that is is unnecessary. |
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Cleopatra Enjeck M <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
… column Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
- removed to only fetch the one share that matches the user id. Group shares my be present and only those relevant to the current user are being fetched. - setting the override now against any share. There might be more and some might be dropped – the override is working against any of them - one none-hidden setting wins - dropped using the NAV_ENTRY_MODE_RECIPIENTS as it is not needed anymore Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
e0a2cd8
to
1e0c152
Compare
Signed-off-by: Cleopatra Enjeck M. <[email protected]>
1e0c152
to
30748c4
Compare
this can be removed once >=NC31 is supported and our NavigationController is adjusted Signed-off-by: Arthur Schiwon <[email protected]>
src/modules/modals/CreateContext.vue
Outdated
@@ -42,6 +42,14 @@ | |||
</div> | |||
<NcContextResource :resources.sync="resources" :receivers.sync="receivers" /> | |||
</div> | |||
<div class="row space-T"> | |||
<NcActionCheckbox :checked="showInNavigationDefault" @change="updateDisplayMode"> | |||
Show in app list |
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.
Should be translatable
src/modules/modals/CreateContext.vue
Outdated
Show in app list | ||
</NcActionCheckbox> | ||
<p class="nav-display-subtext"> | ||
This can be overridden by a per-account preference |
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.
Should be translatable
src/modules/modals/EditContext.vue
Outdated
|
||
<div class="row space-T"> | ||
<NcActionCheckbox :checked="showInNavigationDefault" @change="updateDisplayMode"> | ||
Show in app list |
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.
Should be translatable
src/modules/modals/EditContext.vue
Outdated
Show in app list | ||
</NcActionCheckbox> | ||
<p class="nav-display-subtext"> | ||
This can be overridden by a per-account preference |
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.
Should be translatable
<template #icon> | ||
<Delete :size="20" /> | ||
</template> | ||
{{ t('tables', 'Delete application') }} | ||
</NcActionButton> | ||
<NcActionCheckbox :checked="showInNavigation" @change="updateDisplayMode"> | ||
Show in app list |
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.
Should be translatable
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.
Small nitpicks, but otherwise looks good 👍
Signed-off-by: Julius Knorr <[email protected]>
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.
Tested and works. Also reviewed the backend bits of the base PR.
Part of #1177 and #1193
Todo