mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-06 13:57:41 +00:00
fix: missing ngOnInit fetch data (#6730)
* fix: missing ngoninit fetch data * fix: e2e test for sms check setting has been added --------- Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
parent
ab79855cf0
commit
b4fd566746
@ -1,4 +1,4 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { AddSMSProviderTwilioRequest, UpdateSMSProviderTwilioRequest } from 'src/app/proto/generated/zitadel/admin_pb';
|
||||
import { SMSProvider, SMSProviderConfigState } from 'src/app/proto/generated/zitadel/settings_pb';
|
||||
|
||||
@ -15,7 +15,7 @@ import { DialogAddSMSProviderComponent } from './dialog-add-sms-provider/dialog-
|
||||
templateUrl: './notification-sms-provider.component.html',
|
||||
styleUrls: ['./notification-sms-provider.component.scss'],
|
||||
})
|
||||
export class NotificationSMSProviderComponent {
|
||||
export class NotificationSMSProviderComponent implements OnInit {
|
||||
@Input() public serviceType!: PolicyComponentServiceType;
|
||||
public smsProviders: SMSProvider.AsObject[] = [];
|
||||
|
||||
@ -30,6 +30,9 @@ export class NotificationSMSProviderComponent {
|
||||
private toast: ToastService,
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.fetchData();
|
||||
}
|
||||
private fetchData(): void {
|
||||
this.smsProvidersLoading = true;
|
||||
this.service
|
||||
|
@ -57,6 +57,8 @@ describe('instance notifications', () => {
|
||||
cy.get('[formcontrolname="senderNumber"]').clear().type('2312123132');
|
||||
cy.get('[data-e2e="save-sms-settings-button"]').click();
|
||||
cy.shouldConfirmSuccess();
|
||||
cy.get('h4').contains('Twilio');
|
||||
cy.get('.state').contains('Inactive');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user