feat: прод ЭДО — значение edoApiBaseUrl по умолчанию (#25)
Tests / frontend-test (push) Successful in 2m10s
Tests / frontend-test (push) Successful in 2m10s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: gorbenko.pavel <gorbenko.pavel@tansu.kz> Reviewed-on: http://git.tnsu.kz/timur.gorodetskiy/request-portal/pulls/25
This commit was merged in pull request #25.
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
APPROVAL_API_BASE_URL_LOCAL,
|
||||
APPROVAL_API_BASE_URL_PROD,
|
||||
EDO_API_BASE_URL_LOCAL,
|
||||
EDO_API_BASE_URL_PROD,
|
||||
EDO_API_BASE_URL_STAGE,
|
||||
setApprovalApiBaseUrl,
|
||||
setEdoApiBaseUrl,
|
||||
@@ -66,7 +67,7 @@ export default class RequestPortalWebPart extends BaseClientSideWebPart<IRequest
|
||||
setImpersonatedIdentity(this.properties.debugUserQuery, this.properties.debugUserDisplayName);
|
||||
this.properties.approvalApiBaseUrl = this.properties.approvalApiBaseUrl || APPROVAL_API_BASE_URL_PROD;
|
||||
setApprovalApiBaseUrl(this.properties.approvalApiBaseUrl);
|
||||
this.properties.edoApiBaseUrl = this.properties.edoApiBaseUrl || EDO_API_BASE_URL_STAGE;
|
||||
this.properties.edoApiBaseUrl = this.properties.edoApiBaseUrl || EDO_API_BASE_URL_PROD;
|
||||
setEdoApiBaseUrl(this.properties.edoApiBaseUrl);
|
||||
this._applyNotificationSettings();
|
||||
|
||||
@@ -99,7 +100,7 @@ export default class RequestPortalWebPart extends BaseClientSideWebPart<IRequest
|
||||
// панели без перезапуска), но render случается позже onInit.
|
||||
this.properties.approvalApiBaseUrl = this.properties.approvalApiBaseUrl || APPROVAL_API_BASE_URL_PROD;
|
||||
setApprovalApiBaseUrl(this.properties.approvalApiBaseUrl);
|
||||
this.properties.edoApiBaseUrl = this.properties.edoApiBaseUrl || EDO_API_BASE_URL_STAGE;
|
||||
this.properties.edoApiBaseUrl = this.properties.edoApiBaseUrl || EDO_API_BASE_URL_PROD;
|
||||
setEdoApiBaseUrl(this.properties.edoApiBaseUrl);
|
||||
this._applyNotificationSettings();
|
||||
|
||||
@@ -235,8 +236,9 @@ export default class RequestPortalWebPart extends BaseClientSideWebPart<IRequest
|
||||
groupFields: [
|
||||
PropertyPaneDropdown('edoApiBaseUrl', {
|
||||
label: 'С каким ЭДО работать',
|
||||
selectedKey: this.properties.edoApiBaseUrl || EDO_API_BASE_URL_STAGE,
|
||||
selectedKey: this.properties.edoApiBaseUrl || EDO_API_BASE_URL_PROD,
|
||||
options: [
|
||||
{ key: EDO_API_BASE_URL_PROD, text: `Прод (${EDO_API_BASE_URL_PROD})` },
|
||||
{ key: EDO_API_BASE_URL_STAGE, text: `Стейдж (${EDO_API_BASE_URL_STAGE})` },
|
||||
{ key: EDO_API_BASE_URL_LOCAL, text: `Локально (${EDO_API_BASE_URL_LOCAL})` }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user