diff --git a/package.json b/package.json index f13b71c1f2..d2c578f922 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "planet", "license": "AGPL-3.0", - "version": "0.16.99", + "version": "0.17.0", "myplanet": { "latest": "v0.22.80", "min": "v0.21.80" diff --git a/src/app/shared/dialogs/dialogs-add-table.component.html b/src/app/shared/dialogs/dialogs-add-table.component.html index 3d5128a53b..6c3be17345 100644 --- a/src/app/shared/dialogs/dialogs-add-table.component.html +++ b/src/app/shared/dialogs/dialogs-add-table.component.html @@ -5,12 +5,12 @@
Send to team or enterprise - + {{link.title}}
- + , @Inject(MAT_DIALOG_DATA) public data: any, - private dialogsLoadingService: DialogsLoadingService, + private dialogsLoadingService: DialogsLoadingService ) { this.mode = this.data.mode; - if (this.mode === 'teams') { - this.selectedLink = this.links[0]; - } } ngAfterViewInit() { @@ -72,4 +69,8 @@ export class DialogsAddTableComponent implements AfterViewInit { this.okDisabled = this.teamsSelected.length === 0; } + onSelectionChange(selected: any) { + this.selectedLink = this.links.find(link => link.selector?.type === selected.value.selector.type); + } + }