filebrowser/frontend/src/components/prompts/ShareDelete.vue

42 lines
914 B
Vue
Raw Normal View History

<template>
<div class="card floating">
<div class="card-content">
2021-03-21 11:51:58 +00:00
<p>{{ $t("prompts.deleteMessageShare", { path: "" }) }}</p>
</div>
<div class="card-action">
2021-03-21 11:51:58 +00:00
<button
@click="$store.commit('closeHovers')"
class="button button--flat button--grey"
:aria-label="$t('buttons.cancel')"
2021-03-21 11:51:58 +00:00
:title="$t('buttons.cancel')"
>
{{ $t("buttons.cancel") }}
</button>
<button
@click="submit"
class="button button--flat button--red"
:aria-label="$t('buttons.delete')"
2021-03-21 11:51:58 +00:00
:title="$t('buttons.delete')"
>
{{ $t("buttons.delete") }}
</button>
</div>
</div>
</template>
<script>
2021-03-21 11:51:58 +00:00
import { mapState } from "vuex";
export default {
2021-03-21 11:51:58 +00:00
name: "share-delete",
computed: {
2021-03-21 11:51:58 +00:00
...mapState(["showConfirm"]),
},
methods: {
2021-03-04 14:40:18 +00:00
submit: function () {
2021-03-21 11:51:58 +00:00
this.showConfirm();
},
},
};
</script>