Make clock on header optional
This commit is contained in:
		
							parent
							
								
									bf7875bfaa
								
							
						
					
					
						commit
						483a61d90d
					
				
					 4 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -732,6 +732,7 @@ desktop/views/components/settings.vue:
 | 
			
		|||
  gradient-window-header: "ウィンドウのタイトルバーにグラデーションを使用"
 | 
			
		||||
  post-form-on-timeline: "タイムライン上部に投稿フォームを表示する"
 | 
			
		||||
  suggest-recent-hashtags: "最近のハッシュタグを投稿フォームに表示する"
 | 
			
		||||
  show-clock-on-header: "右上に時計を表示する"
 | 
			
		||||
  show-reply-target: "リプライ先を表示する"
 | 
			
		||||
  show-my-renotes: "自分の行ったRenoteをタイムラインに表示する"
 | 
			
		||||
  show-renoted-my-notes: "自分の投稿のRenoteをタイムラインに表示する"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,6 +49,7 @@
 | 
			
		|||
			</div>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.showPostFormOnTopOfTl" @change="onChangeShowPostFormOnTopOfTl" text="%i18n:@post-form-on-timeline%"/>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.suggestRecentHashtags" @change="onChangeSuggestRecentHashtags" text="%i18n:@suggest-recent-hashtags%"/>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.showClockOnHeader" @change="onChangeShowClockOnHeader" text="%i18n:@show-clock-on-header%"/>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.showReplyTarget" @change="onChangeShowReplyTarget" text="%i18n:@show-reply-target%"/>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.showMyRenotes" @change="onChangeShowMyRenotes" text="%i18n:@show-my-renotes%"/>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.showRenotedMyNotes" @change="onChangeShowRenotedMyNotes" text="%i18n:@show-renoted-my-notes%"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -333,6 +334,12 @@ export default Vue.extend({
 | 
			
		|||
				value: v
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		onChangeShowClockOnHeader(v) {
 | 
			
		||||
			this.$store.dispatch('settings/set', {
 | 
			
		||||
				key: 'showClockOnHeader',
 | 
			
		||||
				value: v
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		onChangeShowReplyTarget(v) {
 | 
			
		||||
			this.$store.dispatch('settings/set', {
 | 
			
		||||
				key: 'showReplyTarget',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
					<x-account v-if="$store.getters.isSignedIn"/>
 | 
			
		||||
					<x-notifications v-if="$store.getters.isSignedIn"/>
 | 
			
		||||
					<x-post v-if="$store.getters.isSignedIn"/>
 | 
			
		||||
					<x-clock/>
 | 
			
		||||
					<x-clock v-if="$store.state.settings.showClockOnHeader"/>
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,6 +13,7 @@ const defaultSettings = {
 | 
			
		|||
	showMaps: true,
 | 
			
		||||
	showPostFormOnTopOfTl: false,
 | 
			
		||||
	suggestRecentHashtags: true,
 | 
			
		||||
	showClockOnHeader: false,
 | 
			
		||||
	circleIcons: true,
 | 
			
		||||
	gradientWindowHeader: false,
 | 
			
		||||
	showReplyTarget: true,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue