Skip to content

Commit

Permalink
Merge pull request #6919 from owncloud/create-space-with-open-sidebar
Browse files Browse the repository at this point in the history
Prevent 'Create Space'-button from disappearing when sidebar is open
  • Loading branch information
JammingBen authored May 10, 2022
2 parents ee3df16 + 2eb2252 commit 561c719
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-create-space-button-sidebar
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: "Create Space"-button with open sidebar

We've fixed a bug where the "Create Space"-button would disappear when opening the sidebar for a space.

https://github.com/owncloud/web/pull/6919
https://github.com/owncloud/web/issues/6918
5 changes: 3 additions & 2 deletions packages/web-app-files/src/components/AppBar/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
<div class="files-app-bar-actions">
<div class="oc-flex-1 oc-flex oc-flex-start" style="gap: 15px">
<slot v-if="selectedFiles.length === 0" name="actions" />
<slot v-if="showActionsOnSelection || selectedFiles.length === 0" name="actions" />
<size-info v-if="showSelectionInfo" class="oc-visible@l" />
<batch-actions v-if="showBatchActions" />
</div>
Expand Down Expand Up @@ -73,7 +73,8 @@ export default {
hasBulkActions: { type: Boolean, default: false },
hasSharesNavigation: { type: Boolean, default: false },
hasSidebarToggle: { type: Boolean, default: true },
hasViewOptions: { type: Boolean, default: true }
hasViewOptions: { type: Boolean, default: true },
showActionsOnSelection: { type: Boolean, default: false }
},
computed: {
...mapGetters('Files', ['files', 'selectedFiles']),
Expand Down
1 change: 1 addition & 0 deletions packages/web-app-files/src/views/spaces/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:breadcrumbs="breadcrumbs"
:has-view-options="false"
:has-sidebar-toggle="false"
:show-actions-on-selection="true"
>
<template #actions>
<create-space />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Spaces projects view should list spaces 1`] = `
<div>
<app-bar-stub breadcrumbs="[object Object]" breadcrumbscontextactionsitems="" class="oc-border-b"></app-bar-stub>
<app-bar-stub breadcrumbs="[object Object]" breadcrumbscontextactionsitems="" showactionsonselection="true" class="oc-border-b"></app-bar-stub>
<div class="spaces-list oc-px-m oc-mt-l">
<ul class="
oc-grid
Expand Down

0 comments on commit 561c719

Please sign in to comment.