| @@ -11,8 +11,8 @@ | ||||
| 	</span> | ||||
|  | ||||
| 	<div class="editor" style="padding:0 12px" v-if="edit"> | ||||
| 		<ui-switch v-model="column.isMediaOnly" @change="onChangeSettings">%i18n:@is-media-only%</ui-switch> | ||||
| 		<ui-switch v-model="column.isMediaView" @change="onChangeSettings">%i18n:@is-media-view%</ui-switch> | ||||
| 		<ui-switch v-model="column.isMediaOnly" @change="onChangeSettings">{{ $t('is-media-only') }}</ui-switch> | ||||
| 		<ui-switch v-model="column.isMediaView" @change="onChangeSettings">{{ $t('is-media-view') }}</ui-switch> | ||||
| 	</div> | ||||
|  | ||||
| 	<x-list-tl v-if="column.type == 'list'" | ||||
| @@ -38,12 +38,14 @@ | ||||
|  | ||||
| <script lang="ts"> | ||||
| import Vue from 'vue'; | ||||
| import i18n from '../../../../i18n'; | ||||
| import XColumn from './deck.column.vue'; | ||||
| import XTl from './deck.tl.vue'; | ||||
| import XListTl from './deck.list-tl.vue'; | ||||
| import XHashtagTl from './deck.hashtag-tl.vue'; | ||||
|  | ||||
| export default Vue.extend({ | ||||
| 	i18n: i18n('deck/deck.tl-column.vue'), | ||||
| 	components: { | ||||
| 		XColumn, | ||||
| 		XTl, | ||||
| @@ -67,7 +69,7 @@ export default Vue.extend({ | ||||
| 			edit: false, | ||||
| 			menu: [{ | ||||
| 				icon: 'cog', | ||||
| 				text: '%i18n:@edit%', | ||||
| 				text: this.$t('edit'), | ||||
| 				action: () => { | ||||
| 					this.edit = !this.edit; | ||||
| 				} | ||||
| @@ -80,10 +82,10 @@ export default Vue.extend({ | ||||
| 			if (this.column.name) return this.column.name; | ||||
|  | ||||
| 			switch (this.column.type) { | ||||
| 				case 'home': return '%i18n:common.deck.home%'; | ||||
| 				case 'local': return '%i18n:common.deck.local%'; | ||||
| 				case 'hybrid': return '%i18n:common.deck.hybrid%'; | ||||
| 				case 'global': return '%i18n:common.deck.global%'; | ||||
| 				case 'home': return this.$t('@deck.home'); | ||||
| 				case 'local': return this.$t('@deck.local'); | ||||
| 				case 'hybrid': return this.$t('@deck.hybrid'); | ||||
| 				case 'global': return this.$t('@deck.global'); | ||||
| 				case 'list': return this.column.list.title; | ||||
| 				case 'hashtag': return this.$store.state.settings.tagTimelines.find(x => x.id == this.column.tagTlId).title; | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo