1
0
Fork 0
mirror of synced 2024-07-06 06:50:49 +12:00

Remove unused file

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-23 11:48:27 +02:00
parent 8dc7c98b6e
commit c592e09c71

View file

@ -1,35 +0,0 @@
<script>
import { rows } from "stores/backend"
import * as api from "../api"
import { notifications } from "@budibase/bbui"
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
export let row
let confirmDeleteDialog
function showDelete() {
confirmDeleteDialog.show()
}
async function deleteRow() {
await api.deleteRow(row)
notifications.success("Row deleted")
rows.delete(row)
}
</script>
<div on:click={showDelete}><i class="ri-delete-row" /></div>
<ConfirmDialog
bind:this={confirmDeleteDialog}
body={`Are you sure you wish to delete this row? Your data will be deleted and this action cannot be undone.`}
okText="Delete Row"
onOk={deleteRow}
title="Confirm Deletion" />
<style>
div {
display: flex;
justify-content: center;
}
</style>