Skip to content

Commit

Permalink
feat: add thirdPartySchemeSelect clearable
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Aug 5, 2024
1 parent cfbbf1c commit 424e74f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/Services/Masa.Mc.Service/Services/ChannelService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ public async Task<PaginatedListDto<ChannelDto>> GetListAsync(IEventBus eventbus,
return query.Result;
}

//public async Task<PaginatedListDto<ChannelDto>> GetListAsync([FromServices] IEventBus eventBus, GetChannelInput inputDto)
//{
// var query = new GetListChannelQuery(inputDto);
// await eventBus.PublishAsync(query);
// return query.Result;
//}

public async Task<ChannelDto> GetAsync(IEventBus eventBus, Guid id)
{
var query = new GetChannelQuery(id);
Expand All @@ -43,6 +36,7 @@ public async Task CreateAsync(IEventBus eventBus, [FromBody] ChannelUpsertDto in

public async Task UpdateAsync(IEventBus eventBus, Guid id, [FromBody] ChannelUpsertDto inputDto)
{
inputDto.Scheme ??= string.Empty;
var command = new UpdateChannelCommand(id, inputDto);
await eventBus.PublishAsync(command);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<ChannelExtraProperties @ref="_channelExtraPropertiesRef" @bind-Value="_model.ExtraProperties" @bind-Type="_model.Type" PasswordView IsAdd />
<MRow Class="row-box">
<MCol Md="6">
<SThirdPartySchemeSelect @bind-Value="@_model.Scheme" FillBackground="false" Label="@T("DisplayName.Scheme")">
<SThirdPartySchemeSelect @bind-Value="@_model.Scheme" Clearable FillBackground="false" Label="@T("DisplayName.Scheme")" Tooltip="@T("SchemeTooltip")">
</SThirdPartySchemeSelect>
</MCol>
<MCol Md="6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ChannelExtraProperties @ref="_channelExtraPropertiesRef" @bind-Value="_model.ExtraProperties" @bind-Type="_model.Type" />
<MRow Class="row-box">
<MCol Md="6">
<SThirdPartySchemeSelect @bind-Value="@_model.Scheme" FillBackground="false" Label="@T("DisplayName.Scheme")">
<SThirdPartySchemeSelect @bind-Value="@_model.Scheme" Clearable FillBackground="false" Label="@T("DisplayName.Scheme")" Tooltip="@T("SchemeTooltip")">
</SThirdPartySchemeSelect>
</MCol>
<MCol Md="6">
Expand Down
2 changes: 1 addition & 1 deletion src/Web/Masa.Mc.Web.Admin/wwwroot/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"CronExpressionNotHasNextRunTime": "Cannot calculate the next run time from this expression",
"ChannelBlock": {
"Title": "Channel",
"SchemeTooltip": "Select third-party users as the data source for pushing user IDs",
"SchemeTooltip": "Select third-party-idp as the data source for pushing user IDs",
"SchemeFieldTooltip": "Do not use thridPartyIdentity"
},
"MessageTaskBlock": {
Expand Down
2 changes: 1 addition & 1 deletion src/Web/Masa.Mc.Web.Admin/wwwroot/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
"CronExpressionNotHasNextRunTime": "您的表达式计算不出下一次运行时间",
"ChannelBlock": {
"Title": "渠道",
"SchemeTooltip": "选择三方用户作为推送用户标识的数据来源",
"SchemeTooltip": "选择三方平台作为推送用户标识的数据来源",
"SchemeFieldTooltip": "不填使用三方身份标识"
},
"MessageTaskBlock": {
Expand Down

0 comments on commit 424e74f

Please sign in to comment.