Skip to content
Snippets Groups Projects
Commit 4f7d5820 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat: hide danger zone if it doesn’t have actionable elements

refs #290
parent a7ec595f
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,9 @@
</FormGroup>
</AFieldset>
<AHousekeeping :show="show" class="tw-col-span-full" />
<APermissionGuard v-slot="{ areAllChildGuardsHidden }">
<AHousekeeping v-show="!areAllChildGuardsHidden" :show="show" class="tw-col-span-full" />
</APermissionGuard>
</div>
<hr />
......@@ -401,6 +403,7 @@ import ATimeEditInfo from '@/components/generic/ATimeEditInfo.vue'
import FormGroup from '@/components/generic/FormGroup.vue'
import AHousekeeping from '@/components/shows/AHousekeeping.vue'
import ADescription from '@/components/generic/ADescription.vue'
import APermissionGuard from '@/components/generic/APermissionGuard.vue'
import SafeHTML from '@/components/generic/SafeHTML'
import ALinkCollectionEditor from '@/components/generic/ALinkCollectionEditor.vue'
import AHTMLEditor from '@/components/generic/AHTMLEditor.vue'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment