Skip to content

Commit

Permalink
Merge pull request #946 from nextcloud/fix/public_share_fixes
Browse files Browse the repository at this point in the history
Public share fixes
  • Loading branch information
mejo- authored Oct 16, 2023
2 parents f8c94c4 + ced9e15 commit 8eb9ce6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Controller/PublicStartController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ public function publicIndex(string $token, string $path): PublicTemplateResponse
return new PublicTemplateResponse('collectives', 'error', ['appsMissing' => $appsMissing]); // templates/error.php
}
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
return new PublicTemplateResponse('collectives', 'main', [ // templates/main.php
$response = new PublicTemplateResponse('collectives', 'main', [ // templates/main.php
'id-app-content' => '#app-content-vue',
'id-app-navigation' => '#app-navigation-vue',
]);
$response->setFooterVisible(false);
return $response;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/components/Collective/CollectiveActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
</template>
{{ t('collectives', 'Settings') }}
</NcActionButton>
<NcActionButton :close-after-click="true"
<NcActionButton v-if="!isPublic"
:close-after-click="true"
@click="leaveCollectiveWithUndo(collective)">
{{ t('collectives', 'Leave collective') }}
<template #icon>
Expand Down

0 comments on commit 8eb9ce6

Please sign in to comment.