removed some logs
This commit is contained in:
parent
81bc0459ed
commit
a0575d1db5
@ -174,8 +174,6 @@ export default class extends AbstractView {
|
|||||||
const removeFriendButton = document.getElementById('removeFriendButton');
|
const removeFriendButton = document.getElementById('removeFriendButton');
|
||||||
|
|
||||||
const response = await client._post(`/api/profiles/friends/${this.profile.id}`);
|
const response = await client._post(`/api/profiles/friends/${this.profile.id}`);
|
||||||
const body = await response.json();
|
|
||||||
console.log(body);
|
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
removeFriendButton.classList.remove('d-none');
|
removeFriendButton.classList.remove('d-none');
|
||||||
@ -198,8 +196,6 @@ export default class extends AbstractView {
|
|||||||
statusIndicator = document.getElementById('statusIndicator');
|
statusIndicator = document.getElementById('statusIndicator');
|
||||||
|
|
||||||
const response = await client._delete(`/api/profiles/friends/${this.profile.id}`);
|
const response = await client._delete(`/api/profiles/friends/${this.profile.id}`);
|
||||||
const body = await response.json();
|
|
||||||
console.log(body);
|
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
addFriendButton.innerHTML = 'Add Friend';
|
addFriendButton.innerHTML = 'Add Friend';
|
||||||
@ -217,8 +213,6 @@ export default class extends AbstractView {
|
|||||||
|
|
||||||
async blockUser() {
|
async blockUser() {
|
||||||
const response = await client._post(`/api/profiles/block/${this.profile.id}`);
|
const response = await client._post(`/api/profiles/block/${this.profile.id}`);
|
||||||
const body = await response.json();
|
|
||||||
console.log(body);
|
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
document.getElementById('blockButton').classList.add('d-none');
|
document.getElementById('blockButton').classList.add('d-none');
|
||||||
@ -230,8 +224,6 @@ export default class extends AbstractView {
|
|||||||
|
|
||||||
async unblockUser() {
|
async unblockUser() {
|
||||||
const response = await client._delete(`/api/profiles/block/${this.profile.id}`);
|
const response = await client._delete(`/api/profiles/block/${this.profile.id}`);
|
||||||
const body = await response.json();
|
|
||||||
console.log(body);
|
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
document.getElementById('unblockButton').classList.add('d-none');
|
document.getElementById('unblockButton').classList.add('d-none');
|
||||||
|
Loading…
Reference in New Issue
Block a user