Former-commit-id: 8fc595933b73d635bbe20e018958343d9dd3e31b [formerly c056d2fa20bec942e89710ff469e12cb07a498a9] [formerly a455096212ba0cb70102a99c714d8ff3e1401f17 [formerly 1861645b0421c2989def739a5d40aa7cde5a5288]] Former-commit-id: 794d333ef3a2788c5e76f7c1a558af8be1137c20 [formerly ab8ca7057862e8919a7d01c3d71ecd70ba7b32f3] Former-commit-id: 3430567351ec7425e167c4c128bb7316ff631eac
32 lines
799 B
Vue
32 lines
799 B
Vue
<template>
|
|
<div class="prompt error">
|
|
<i class="material-icons">error_outline</i>
|
|
<h3>{{ $t('prompts.error') }}</h3>
|
|
<pre>{{ $store.state.showMessage }}</pre>
|
|
<div>
|
|
<button @click="close"
|
|
autofocus
|
|
:aria-label="$t('buttons.close')"
|
|
:title="$t('buttons.close')">{{ $t('buttons.close') }}</button>
|
|
<button @click="reportIssue"
|
|
class="cancel"
|
|
:aria-label="$t('buttons.reportIssue')"
|
|
:title="$t('buttons.reportIssue')">{{ $t('buttons.reportIssue') }}</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'error',
|
|
methods: {
|
|
reportIssue () {
|
|
window.open('https://github.com/hacdias/filemanager/issues/new')
|
|
},
|
|
close () {
|
|
this.$store.commit('closeHovers')
|
|
}
|
|
}
|
|
}
|
|
</script>
|