autocomit
This commit is contained in:
+14
@@ -44,6 +44,12 @@
|
|||||||
(click)="setActiveTab('contacts')">
|
(click)="setActiveTab('contacts')">
|
||||||
👥 Contacts
|
👥 Contacts
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
class="tab-button"
|
||||||
|
[class.active]="activeTab === 'dependencies'"
|
||||||
|
(click)="setActiveTab('dependencies')">
|
||||||
|
🔗 Dependencies
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tab Content -->
|
<!-- Tab Content -->
|
||||||
@@ -113,6 +119,14 @@
|
|||||||
[applicationName]="application.name">
|
[applicationName]="application.name">
|
||||||
</app-application-contacts>
|
</app-application-contacts>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Dependencies Tab -->
|
||||||
|
<div *ngIf="activeTab === 'dependencies'">
|
||||||
|
<app-application-dependencies
|
||||||
|
[applicationId]="application.id"
|
||||||
|
[applicationName]="application.name">
|
||||||
|
</app-application-dependencies>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+6
-4
@@ -6,6 +6,7 @@ import { Application, ApplicationStatus } from '../../../shared/models/applicati
|
|||||||
import { VersionListComponent } from '../../versions/version-list/version-list.component';
|
import { VersionListComponent } from '../../versions/version-list/version-list.component';
|
||||||
import { ApplicationDeploymentsComponent } from '../application-deployments/application-deployments.component';
|
import { ApplicationDeploymentsComponent } from '../application-deployments/application-deployments.component';
|
||||||
import { ApplicationContactsComponent } from '../application-contacts/application-contacts.component';
|
import { ApplicationContactsComponent } from '../application-contacts/application-contacts.component';
|
||||||
|
import { ApplicationDependenciesComponent } from '../application-dependencies/application-dependencies.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-application-detail',
|
selector: 'app-application-detail',
|
||||||
@@ -14,7 +15,8 @@ import { ApplicationContactsComponent } from '../application-contacts/applicatio
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
VersionListComponent,
|
VersionListComponent,
|
||||||
ApplicationDeploymentsComponent,
|
ApplicationDeploymentsComponent,
|
||||||
ApplicationContactsComponent
|
ApplicationContactsComponent,
|
||||||
|
ApplicationDependenciesComponent
|
||||||
],
|
],
|
||||||
templateUrl: './application-detail.component.html',
|
templateUrl: './application-detail.component.html',
|
||||||
styleUrls: ['./application-detail.component.scss']
|
styleUrls: ['./application-detail.component.scss']
|
||||||
@@ -23,7 +25,7 @@ export class ApplicationDetailComponent implements OnInit {
|
|||||||
application?: Application;
|
application?: Application;
|
||||||
loading = false;
|
loading = false;
|
||||||
error = '';
|
error = '';
|
||||||
activeTab: 'overview' | 'versions' | 'deployments' | 'contacts' = 'overview';
|
activeTab: 'overview' | 'versions' | 'deployments' | 'contacts' | 'dependencies' = 'overview';
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private applicationService: ApplicationService,
|
private applicationService: ApplicationService,
|
||||||
@@ -34,7 +36,7 @@ export class ApplicationDetailComponent implements OnInit {
|
|||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
const id = this.route.snapshot.paramMap.get('id');
|
const id = this.route.snapshot.paramMap.get('id');
|
||||||
const tab = this.route.snapshot.queryParamMap.get('tab');
|
const tab = this.route.snapshot.queryParamMap.get('tab');
|
||||||
if (tab && ['overview', 'versions', 'deployments', 'contacts'].includes(tab)) {
|
if (tab && ['overview', 'versions', 'deployments', 'contacts', 'dependencies'].includes(tab)) {
|
||||||
this.activeTab = tab as any;
|
this.activeTab = tab as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +59,7 @@ export class ApplicationDetailComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
setActiveTab(tab: 'overview' | 'versions' | 'deployments' | 'contacts'): void {
|
setActiveTab(tab: 'overview' | 'versions' | 'deployments' | 'contacts' | 'dependencies'): void {
|
||||||
this.activeTab = tab;
|
this.activeTab = tab;
|
||||||
this.router.navigate([], {
|
this.router.navigate([], {
|
||||||
relativeTo: this.route,
|
relativeTo: this.route,
|
||||||
|
|||||||
Reference in New Issue
Block a user