Fixed friends and bookmarks lists failing to update character status
This commit is contained in:
		
							parent
							
								
									d9e1e83d74
								
							
						
					
					
						commit
						317d7970be
					
				@ -3,7 +3,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script lang="ts">
 | 
					<script lang="ts">
 | 
				
			||||||
import { Component, Hook, Prop } from '@f-list/vue-ts';
 | 
					import { Component, Hook, Prop, Watch } from '@f-list/vue-ts';
 | 
				
			||||||
import Vue from 'vue';
 | 
					import Vue from 'vue';
 | 
				
			||||||
import {Channel, Character} from '../fchat';
 | 
					import {Channel, Character} from '../fchat';
 | 
				
			||||||
import { Score, Scoring } from '../learn/matcher';
 | 
					import { Score, Scoring } from '../learn/matcher';
 | 
				
			||||||
@ -108,6 +108,10 @@ export default class UserView extends Vue {
 | 
				
			|||||||
        this.update();
 | 
					        this.update();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Watch('character.status')
 | 
				
			||||||
 | 
					    onStatusUpdate(): void {
 | 
				
			||||||
 | 
					      this.update();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    update(): void {
 | 
					    update(): void {
 | 
				
			||||||
        this.rankIcon = null;
 | 
					        this.rankIcon = null;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user