diff --git a/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte b/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte
new file mode 100644
index 0000000000..56dfc4ea17
--- /dev/null
+++ b/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte
@@ -0,0 +1,31 @@
+
+
+
+
+ Are you sure you want to delete {removePlugin?.name}
+
+
diff --git a/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte b/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte
index 4b990ed831..0eabad111a 100644
--- a/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte
+++ b/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte
@@ -117,9 +117,6 @@
align-items: center;
}
- .opacity {
- opacity: 50%;
- }
@media (max-width: 640px) {
.desktop {
display: none !important;
diff --git a/packages/builder/src/pages/builder/portal/manage/plugins/index.svelte b/packages/builder/src/pages/builder/portal/manage/plugins/index.svelte
index 61227786b0..04f8ffaf69 100644
--- a/packages/builder/src/pages/builder/portal/manage/plugins/index.svelte
+++ b/packages/builder/src/pages/builder/portal/manage/plugins/index.svelte
@@ -13,9 +13,12 @@
import { plugins } from "stores/portal"
import PluginRow from "./_components/PluginRow.svelte"
import AddPluginModal from "./_components/AddPluginModal.svelte"
+ import DeletePluginModal from "./_components/DeletePluginModal.svelte"
let modal
+ let deleteModal
let searchTerm = ""
+ let removePlugin
let filterOptions = [
{ label: "All Plugins", value: "all" },
@@ -31,6 +34,12 @@
.filter(plugin =>
plugin?.name?.toLowerCase().includes(searchTerm.toLowerCase())
)
+
+ const deletePlugin = plugin => {
+ deleteModal.show()
+ removePlugin = plugin
+ }
+
onMount(async () => {
await plugins.load()
})
@@ -66,7 +75,7 @@
{#if $plugins}
{#each filteredPlugins as plugin}
-
+
{/each}
{/if}
@@ -75,6 +84,9 @@
+
+
+