Skip to content

Commit

Permalink
Improvements and bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Dec 15, 2023
1 parent 9a1699e commit 242a97b
Show file tree
Hide file tree
Showing 29 changed files with 2,833 additions and 2,318 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# tiledesk-dashboard

### 2.4.80
- Improvements and bug fixing

### 2.4.79
- Adds the "News and documentation" section to the home page

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiledesk/tiledesk-dashboard",
"version": "2.4.79",
"version": "2.4.80",
"scripts": {
"ng": "ng",
"start": "ng serve --aot",
Expand Down
47 changes: 34 additions & 13 deletions src/app/app-store/app-store.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,7 @@ export class AppStoreComponent implements OnInit {
})
}

// getToken() {
// this.auth.user_bs.subscribe((user) => {
// if (user) {
// this.TOKEN = user.token
// this.userId = user._id
// }
// });
// }


getOSCODE() {
this.public_Key = this.appConfigService.getConfig().t2y12PruGU9wUtEGzBJfolMIgK;
Expand Down Expand Up @@ -205,10 +198,9 @@ export class AppStoreComponent implements OnInit {
)
.subscribe((project) => {
if (project) {
this.project = project
this.projectId = project._id,

console.log('APP-STORE - projectId ', this.projectId)
this.project = project;
this.projectId = project._id;
this.logger.log('APP-STORE - projectId ', this.projectId)
}
});
}
Expand All @@ -233,8 +225,37 @@ export class AppStoreComponent implements OnInit {
getApps() {
this.appStoreService.getApps().subscribe((_apps: any) => {
this.apps = _apps.apps;
// console.log('APP-STORE - getApps APPS ', this.apps);
this.logger.log('APP-STORE - getApps APPS ', this.apps);


const paidApps = [
{
title: "WhatsApp Business", _id: "638a2564ccd1d40013e52125"
},
{
title: "Facebook Messenger", _id: "6421f8093e8de70013f78a5d"
},
{
title: "Help Center", _id: "643820f0edf2f350eeb2d835"
}
]

if (!this.isVisiblePAY) {
this.apps = _apps.apps.filter(a => !paidApps.some(p => p._id == a._id));

this.logger.log('APP-STORE - Here yes')
this.logger.log('APP-STORE - getApps APPS after filter', this.apps)
}

const sendTranscriptAppIndex = this.apps.findIndex(object => {
return object._id === "64259aaf035da07321451424";
});

this.logger.log('sendTranscriptAppIndex ', sendTranscriptAppIndex);
this.apps.splice(sendTranscriptAppIndex, 1);

this.apps.forEach(app => {

if (app.description.length > 118) {
app.description = app.description.slice(0, 118) + '...'
}
Expand Down
Loading

0 comments on commit 242a97b

Please sign in to comment.