Skip to content

Commit

Permalink
fix(space-card): make favorite btn available to non admin users (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel authored Oct 27, 2023
1 parent 694cb7a commit 9d8f1fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/components/specific/app/app-header/AppHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}

&__invit-btn {
position: relative;
margin: 0 var(--spacing-unit);

&__notif {
Expand Down
5 changes: 1 addition & 4 deletions src/components/specific/spaces/space-card/SpaceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
>
<BIMDataCard class="space-card">
<template #right>
<SpaceCardActionMenu
v-if="actionMenu && space.isAdmin"
:space="space"
/>
<SpaceCardActionMenu v-if="actionMenu" :space="space" />
</template>
<template #content>
<div v-if="space.isFree" class="free-badge">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
}

&__container {
$card-menu-height: 132px;

position: absolute;
right: 0;
width: calc(#{$card-width} - var(--spacing-unit));
min-height: $card-menu-height;
margin-top: calc(var(--spacing-unit) / 2);
padding: calc(var(--spacing-unit) / 2) 0;
border-radius: 4px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
}}
</BIMDataButton>
<BIMDataButton
v-if="space.isAdmin"
data-test-id="btn-open-update"
ghost
squared
Expand All @@ -56,12 +57,13 @@
{{ $t("t.rename") }}
</BIMDataButton>
<SpaceCardImageButton
v-if="space.isAdmin"
data-test-id="btn-update-image"
:space="space"
@upload-completed="closeMenu"
/>
<BIMDataButton
v-if="space.image"
v-if="space.isAdmin && space.image"
data-test-id="btn-delete-image"
ghost
squared
Expand All @@ -70,6 +72,7 @@
{{ $t("SpaceCardActionMenu.removeImageButtonText") }}
</BIMDataButton>
<BIMDataButton
v-if="space.isAdmin"
data-test-id="btn-open-delete"
color="high"
ghost
Expand Down

0 comments on commit 9d8f1fa

Please sign in to comment.