Better design
This commit is contained in:
		
							parent
							
								
									89b5d976ee
								
							
						
					
					
						commit
						946c706913
					
				
					 1 changed files with 13 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -22,7 +22,19 @@ export default Vue.extend({
 | 
			
		|||
				icon: '%fa:link%',
 | 
			
		||||
				text: '%i18n:@copy-link%',
 | 
			
		||||
				action: this.copyLink
 | 
			
		||||
			}, null];
 | 
			
		||||
			}];
 | 
			
		||||
 | 
			
		||||
			if (this.note.uri) {
 | 
			
		||||
				items.push({
 | 
			
		||||
					icon: '%fa:external-link-square-alt%',
 | 
			
		||||
					text: '%i18n:@remote%',
 | 
			
		||||
					action: () => {
 | 
			
		||||
						window.open(this.note.uri, '_blank');
 | 
			
		||||
					}
 | 
			
		||||
				});
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			items.push(null);
 | 
			
		||||
 | 
			
		||||
			if (this.note.isFavorited) {
 | 
			
		||||
				items.push({
 | 
			
		||||
| 
						 | 
				
			
			@ -63,16 +75,6 @@ export default Vue.extend({
 | 
			
		|||
				});
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (this.note.uri) {
 | 
			
		||||
				items.push({
 | 
			
		||||
					icon: '%fa:external-link-square-alt%',
 | 
			
		||||
					text: '%i18n:@remote%',
 | 
			
		||||
					action: () => {
 | 
			
		||||
						window.open(this.note.uri, '_blank');
 | 
			
		||||
					}
 | 
			
		||||
				});
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			return items;
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue