antares/src/renderer/components/WorkspaceEmptyState.vue

51 lines
1.2 KiB
Vue
Raw Normal View History

2021-07-18 16:10:36 +02:00
<template>
<div class="column col-12 empty">
<div class="empty-icon">
<img :src="require(`@/images/logo-${applicationTheme}.svg`).default" width="200">
</div>
<p class="h6 empty-subtitle">
{{ $t('message.noOpenTabs') }}
</p>
<div class="empty-action">
<button class="btn btn-gray d-flex" @click="$emit('new-tab')">
<i class="mdi mdi-24px mdi-tab-plus mr-2" />
{{ $t('message.openNewTab') }}
</button>
</div>
</div>
</template>
<script>
2021-07-19 22:38:56 +02:00
import { mapGetters, mapActions } from 'vuex';
2021-07-18 16:10:36 +02:00
export default {
name: 'WorkspaceEmptyState',
computed: {
...mapGetters({
applicationTheme: 'settings/getApplicationTheme'
})
2021-07-19 22:38:56 +02:00
},
created () {
this.changeBreadcrumbs({});
},
methods: {
...mapActions({
changeBreadcrumbs: 'workspaces/changeBreadcrumbs'
})
2021-07-18 16:10:36 +02:00
}
};
</script>
<style scoped>
.empty {
height: 100%;
border-radius: 0;
background: transparent;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-left: auto;
margin-right: auto;
}
</style>