2018-02-12 12:10:16 +00:00
|
|
|
<template>
|
2018-04-07 17:30:37 +00:00
|
|
|
<div class="note">
|
2018-11-08 18:44:35 +00:00
|
|
|
<button @click="post" :title="$t('post')"><fa icon="pencil-alt"/></button>
|
2018-02-12 12:10:16 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-11-08 18:44:35 +00:00
|
|
|
import i18n from '../../../i18n';
|
2018-02-12 12:10:16 +00:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 18:44:35 +00:00
|
|
|
i18n: i18n('desktop/views/components/ui.header.post.vue'),
|
2018-02-12 12:10:16 +00:00
|
|
|
methods: {
|
|
|
|
post() {
|
2018-11-08 23:26:32 +00:00
|
|
|
this.$root.apis.post();
|
2018-02-12 12:10:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-04-07 17:30:37 +00:00
|
|
|
.note
|
2018-02-12 12:10:16 +00:00
|
|
|
display inline-block
|
|
|
|
padding 8px
|
|
|
|
height 100%
|
|
|
|
vertical-align top
|
|
|
|
|
|
|
|
> button
|
|
|
|
display inline-block
|
|
|
|
margin 0
|
|
|
|
padding 0 10px
|
|
|
|
height 100%
|
|
|
|
font-size 1.2em
|
|
|
|
font-weight normal
|
|
|
|
text-decoration none
|
2018-09-26 11:19:35 +00:00
|
|
|
color var(--primaryForeground)
|
|
|
|
background var(--primary) !important
|
2018-02-12 12:10:16 +00:00
|
|
|
outline none
|
|
|
|
border none
|
|
|
|
border-radius 4px
|
|
|
|
transition background 0.1s ease
|
|
|
|
cursor pointer
|
|
|
|
|
|
|
|
*
|
|
|
|
pointer-events none
|
|
|
|
|
|
|
|
&:hover
|
2018-09-26 11:19:35 +00:00
|
|
|
background var(--primaryLighten10) !important
|
2018-02-12 12:10:16 +00:00
|
|
|
|
|
|
|
&:active
|
2018-09-26 11:19:35 +00:00
|
|
|
background var(--primaryDarken10) !important
|
2018-02-12 12:10:16 +00:00
|
|
|
transition background 0s ease
|
|
|
|
|
|
|
|
</style>
|