clean up
This commit is contained in:
parent
fb4a274956
commit
52f5aa69df
@ -36,7 +36,6 @@ export class EmojiPickerComponent implements OnInit {
|
|||||||
let currentAccount = this.toolsService.getSelectedAccounts()[0];
|
let currentAccount = this.toolsService.getSelectedAccounts()[0];
|
||||||
this.toolsService.getCustomEmojis(currentAccount)
|
this.toolsService.getCustomEmojis(currentAccount)
|
||||||
.then(emojis => {
|
.then(emojis => {
|
||||||
console.warn(emojis);
|
|
||||||
this.customEmojis = emojis.map(x => this.convertEmoji(x));
|
this.customEmojis = emojis.map(x => this.convertEmoji(x));
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
@ -147,8 +147,6 @@ export class LeftSideBarComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.scheduledSub = this.scheduledStatusService.scheduledStatuses.subscribe((notifications: ScheduledStatusNotification[]) => {
|
this.scheduledSub = this.scheduledStatusService.scheduledStatuses.subscribe((notifications: ScheduledStatusNotification[]) => {
|
||||||
console.warn(notifications);
|
|
||||||
|
|
||||||
let statuses = [];
|
let statuses = [];
|
||||||
notifications.forEach(n => {
|
notifications.forEach(n => {
|
||||||
n.statuses.forEach(x => {
|
n.statuses.forEach(x => {
|
||||||
@ -157,7 +155,6 @@ export class LeftSideBarComponent implements OnInit, OnDestroy {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.hasScheduledStatuses = statuses.length > 0;
|
this.hasScheduledStatuses = statuses.length > 0;
|
||||||
console.warn(`hasScheduledStatuses ${this.hasScheduledStatuses}`);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,6 @@ export class StatusUserContextMenuComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
this.getStatus(selectedAccount)
|
this.getStatus(selectedAccount)
|
||||||
.then((status: Status) => {
|
.then((status: Status) => {
|
||||||
console.warn(status);
|
|
||||||
return this.mastodonService.pinOnProfile(selectedAccount, status.id)
|
return this.mastodonService.pinOnProfile(selectedAccount, status.id)
|
||||||
})
|
})
|
||||||
.then((status: Status) => {
|
.then((status: Status) => {
|
||||||
|
@ -119,7 +119,6 @@ export class StreamNotificationsComponent implements OnInit, OnDestroy {
|
|||||||
this.account = this.toolsService.getAccountById(this.streamElement.accountId);
|
this.account = this.toolsService.getAccountById(this.streamElement.accountId);
|
||||||
|
|
||||||
this.mentionsSubscription = this.userNotificationService.userNotifications.subscribe((userNotifications: UserNotification[]) => {
|
this.mentionsSubscription = this.userNotificationService.userNotifications.subscribe((userNotifications: UserNotification[]) => {
|
||||||
console.warn(userNotifications);
|
|
||||||
this.loadMentions(userNotifications);
|
this.loadMentions(userNotifications);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -84,9 +84,6 @@ export class StreamOverlayComponent implements OnInit, OnDestroy {
|
|||||||
this.loadedElements[newIndex].show();
|
this.loadedElements[newIndex].show();
|
||||||
this.visibleElementIndex = newIndex;
|
this.visibleElementIndex = newIndex;
|
||||||
|
|
||||||
console.warn(`visibleElementIndex ${this.visibleElementIndex}`);
|
|
||||||
console.warn(`this.loadedElements ${this.loadedElements.length}`);
|
|
||||||
|
|
||||||
this.hasPreviousElements = true;
|
this.hasPreviousElements = true;
|
||||||
this.hasNextElements = this.visibleElementIndex < this.loadedElements.length - 1;
|
this.hasNextElements = this.visibleElementIndex < this.loadedElements.length - 1;
|
||||||
|
|
||||||
@ -104,9 +101,6 @@ export class StreamOverlayComponent implements OnInit, OnDestroy {
|
|||||||
this.loadedElements[newIndex].show();
|
this.loadedElements[newIndex].show();
|
||||||
this.visibleElementIndex = newIndex;
|
this.visibleElementIndex = newIndex;
|
||||||
|
|
||||||
console.warn(`visibleElementIndex ${this.visibleElementIndex}`);
|
|
||||||
console.warn(`this.loadedElements ${this.loadedElements.length}`);
|
|
||||||
|
|
||||||
this.hasPreviousElements = this.visibleElementIndex > 0;
|
this.hasPreviousElements = this.visibleElementIndex > 0;
|
||||||
this.hasNextElements = true;
|
this.hasNextElements = true;
|
||||||
|
|
||||||
|
@ -26,8 +26,6 @@ export class NotificationService {
|
|||||||
let message = 'Oops, Unknown Error';
|
let message = 'Oops, Unknown Error';
|
||||||
let code: number;
|
let code: number;
|
||||||
|
|
||||||
console.warn(err);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
code = err.status;
|
code = err.status;
|
||||||
message = err.error.error; //Mastodon
|
message = err.error.error; //Mastodon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user