Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
petaki committed Dec 13, 2024
2 parents 4e2151b + e3148ee commit 5b76af2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/js/base/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,18 @@
<sidebar-title>
Delete
</sidebar-title>
<!-- eslint-disable vue/attribute-hyphenation -->
<sidebar-link :is-highlight="true"
:href="`/probe/delete?probe=${$page.props.probe}`"
method="delete"
as="button">
as="button"
:onBefore="confirmDelete">
<trash-icon class="h-5 w-5 mr-2" />
<span>
Delete
</span>
</sidebar-link>
<!-- eslint-enable vue/attribute-hyphenation -->
</div>
</div>
<div class="flex h-20 bg-slate-700 bg-opacity-40 text-sm text-slate-300">
Expand Down Expand Up @@ -138,6 +141,9 @@ import SidebarLink from './SidebarLink.vue';
const isSidebarOpen = ref(false);
const year = ref(new Date().getFullYear());
// eslint-disable-next-line no-alert
const confirmDelete = () => window.confirm('Are you sure you want to delete this probe?');
onUnmounted(
router.on('navigate', () => {
isSidebarOpen.value = false;
Expand Down

0 comments on commit 5b76af2

Please sign in to comment.