Преглед на файлове

Update SearchResult component

Daniel Supernault преди 6 години
родител
ревизия
0f5e651179
променени са 1 файла, в които са добавени 7 реда и са изтрити 8 реда
  1. 7 8
      resources/assets/js/components/SearchResults.vue

+ 7 - 8
resources/assets/js/components/SearchResults.vue

@@ -56,11 +56,11 @@
 						<p class="font-weight-bold text-truncate text-dark">
 							{{profile.value}}
 						</p>
-						<!-- <p class="mb-0 text-center">
+						<p class="mb-0 text-center">
 							 <button :class="[profile.entity.following ? 'btn btn-secondary btn-sm py-1 font-weight-bold' : 'btn btn-primary btn-sm py-1 font-weight-bold']" v-on:click="followProfile(profile.entity.id)">
 							 	{{profile.entity.following ? 'Unfollow' : 'Follow'}}
 							 </button>
-						</p> -->
+						</p>
 					</div>
 				</a>
 			</div>
@@ -139,12 +139,11 @@ export default {
 
 		followProfile(id) {
 			// todo: finish AP Accept handling to enable remote follows
-			return;
-			// axios.post('/i/follow', {
-			// 	item: id
-			// }).then(res => {
-			// 	window.location.href = window.location.href;
-			// });
+			axios.post('/i/follow', {
+				item: id
+			}).then(res => {
+				window.location.href = window.location.href;
+			});
 		},
 	}