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

48 lines
1.2 KiB
Vue
Raw Normal View History

2020-07-16 19:30:17 +00:00
<template>
<div class="card floating">
<div class="card-title">
2021-03-21 11:51:58 +00:00
<h2>{{ $t("prompts.replace") }}</h2>
2020-07-16 19:30:17 +00:00
</div>
<div class="card-content">
2021-03-21 11:51:58 +00:00
<p>{{ $t("prompts.replaceMessage") }}</p>
2020-07-16 19:30:17 +00:00
</div>
<div class="card-action">
2021-03-21 11:51:58 +00:00
<button
class="button button--flat button--grey"
2020-07-16 19:30:17 +00:00
@click="$store.commit('closeHovers')"
:aria-label="$t('buttons.cancel')"
2021-03-21 11:51:58 +00:00
:title="$t('buttons.cancel')"
>
{{ $t("buttons.cancel") }}
</button>
<button
class="button button--flat button--blue"
2020-07-16 19:30:17 +00:00
@click="(event) => showConfirm(event, 'rename')"
:aria-label="$t('buttons.rename')"
2021-03-21 11:51:58 +00:00
:title="$t('buttons.rename')"
>
{{ $t("buttons.rename") }}
</button>
<button
class="button button--flat button--red"
2020-07-16 19:30:17 +00:00
@click="(event) => showConfirm(event, 'overwrite')"
:aria-label="$t('buttons.replace')"
2021-03-21 11:51:58 +00:00
:title="$t('buttons.replace')"
>
{{ $t("buttons.replace") }}
</button>
2020-07-16 19:30:17 +00:00
</div>
</div>
</template>
<script>
2021-03-21 11:51:58 +00:00
import { mapState } from "vuex";
2020-07-16 19:30:17 +00:00
export default {
2021-03-21 11:51:58 +00:00
name: "replace-rename",
computed: mapState(["showConfirm"]),
};
2020-07-16 19:30:17 +00:00
</script>