Remove unused file

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-23 11:48:27 +02:00
parent 6dad6adb6d
commit 252d06c7fd
1 changed files with 0 additions and 35 deletions

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>