Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Dec 15, 2023
1 parent c4e1948 commit 53d9b1b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 21 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.85
- Improvements and bug fixing

### 2.4.84
- Improvements and bug fixing

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.84",
"version": "2.4.85",
"scripts": {
"ng": "ng",
"start": "ng serve --aot",
Expand Down
9 changes: 7 additions & 2 deletions src/app/app-store/app-store.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ <h4 class="card-create-app-text">
<!-- -------------------------------------------------------------------- -->
<!-- @ App cards -->
<!-- -------------------------------------------------------------------- -->
<div *ngFor="let app of apps" class="col-lg-4 col-md-4 col-sm-6" style="cursor:pointer">
<div *ngFor="let app of apps" class="col-lg-4 col-md-4 col-sm-6" style="cursor:pointer"
[ngClass]="{'hide-paid-app': !this.isVisiblePAY && (app.title === 'WhatsApp Business' || app.title === 'Facebook Messenger' || app.title === 'Help Center') }">
<div class="card card-app-store">

<div class="card-content">
Expand Down Expand Up @@ -318,7 +319,11 @@ <h4 class="card-create-app-text">
</div>
</div>
<!-- padding: 0px 20px; min-height: 52px; -->
<h5 class="card-title" style="margin-bottom: 5px;" [ngClass]="{'app-store-card-no-badge': (app?.title !== 'Zapier') && (app?.title !== 'WhatsApp Business') && (app?.title !== 'Facebook Messenger') && (app?.title !== 'Help Center')}">
<h5 class="card-title" style="margin-bottom: 5px;" [ngClass]="{
'app-store-card-no-badge': (app?.title !== 'Zapier') &&
(app?.title !== 'WhatsApp Business') &&
(app?.title !== 'Facebook Messenger') &&
(app?.title !== 'Help Center')}">
{{ app.title}}
</h5>

Expand Down
4 changes: 4 additions & 0 deletions src/app/app-store/app-store.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,7 @@
color: #080f1a;
font-family: "Poppins", "Roboto", "Arial", sans-serif;
}

.hide-paid-app {
display: none;
}
34 changes: 17 additions & 17 deletions src/app/app-store/app-store.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,31 +240,31 @@ export class AppStoreComponent implements OnInit {
}
]

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

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

const sendWAAppIndex = this.apps.findIndex(object => {
return object.title === "WhatsApp Business";
});
// const sendWAAppIndex = this.apps.findIndex(object => {
// return object.title === "WhatsApp Business";
// });

this.apps.splice(sendWAAppIndex, 1);
// this.apps.splice(sendWAAppIndex, 1);

const sendFMAppIndex = this.apps.findIndex(object => {
return object.title === "Facebook Messenger";
});
// const sendFMAppIndex = this.apps.findIndex(object => {
// return object.title === "Facebook Messenger";
// });

this.apps.splice(sendFMAppIndex, 1);
// this.apps.splice(sendFMAppIndex, 1);

const sendHCAppIndex = this.apps.findIndex(object => {
return object.title === "Help Center";
});
// const sendHCAppIndex = this.apps.findIndex(object => {
// return object.title === "Help Center";
// });

this.apps.splice(sendHCAppIndex, 1);
// this.apps.splice(sendHCAppIndex, 1);

}
// }

const sendTranscriptAppIndex = this.apps.findIndex(object => {
return object.title === "Send transcript by email";
Expand Down

0 comments on commit 53d9b1b

Please sign in to comment.