remove last SMButton

This commit is contained in:
2023-06-23 08:40:18 +10:00
parent 8906936e51
commit 2f850ce152
2 changed files with 6 additions and 11 deletions

View File

@@ -27,11 +27,7 @@
</div> </div>
</li> </li>
</ul> </ul>
<!-- <SMButton <button type="button" @click="handleClickAdd">Add media</button>
type="secondary"
:small="true"
label="Add media"
@click="handleClickAdd" /> -->
</div> </div>
</template> </template>
@@ -43,7 +39,6 @@ import { Media, MediaResponse } from "../helpers/api.types";
import { bytesReadable } from "../helpers/types"; import { bytesReadable } from "../helpers/types";
import { getFilePreview } from "../helpers/utils"; import { getFilePreview } from "../helpers/utils";
import SMDialogMedia from "./dialogs/SMDialogMedia.vue"; import SMDialogMedia from "./dialogs/SMDialogMedia.vue";
import SMButton from "../components/SMButton.vue";
const props = defineProps({ const props = defineProps({
modelValue: { modelValue: {

View File

@@ -86,12 +86,12 @@
:value="editMultiple ? 'Save All' : 'Save'" /> :value="editMultiple ? 'Save All' : 'Save'" />
</template> </template>
<template #left> <template #left>
<SMButton <button
:form="form"
v-if="route.params.id" v-if="route.params.id"
type="danger" type="button"
:label="editMultiple ? 'Delete All' : 'Delete'" @click="handleDelete">
@click="handleDelete" /> {{ editMultiple ? "Delete All" : "Delete" }}
</button>
</template> </template>
</SMColumn> </SMColumn>
</SMRow> </SMRow>