Skip to content

Commit

Permalink
add MultiSetter
Browse files Browse the repository at this point in the history
  • Loading branch information
olmobrutall committed Sep 16, 2020
1 parent fd01e2c commit 2fa7728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Signum.Entities/EnumMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public enum OperationMessage
Setters,
[Description("Add setter")]
AddSetter,
[Description("multi setter")]
MultiSetter,
}

public enum SynchronizerMessage
Expand Down
2 changes: 1 addition & 1 deletion Signum.React/Scripts/Operations/ContextualOperations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export namespace MenuItemConstructor { //To allow monkey patching

const text = coc.settings && coc.settings.text ? coc.settings.text() :
coc.entityOperationSettings?.text ? coc.entityOperationSettings.text() :
simplifyName(coc.operationInfo.niceName);
<>{simplifyName(coc.operationInfo.niceName)}{coc.operationInfo.canBeModified ? <small className="ml-2">{OperationMessage.MultiSetter.niceToString()}</small> : null}</>;

const color = coc.settings?.color ?? coc.entityOperationSettings?.color ?? Defaults.getColor(coc.operationInfo);
const icon = coalesceIcon(coc.settings?.icon, coc.entityOperationSettings?.icon);
Expand Down
1 change: 1 addition & 0 deletions Signum.React/Scripts/Signum.Entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ export module OperationMessage {
export const Predictate = new MessageKey("OperationMessage", "Predictate");
export const Setters = new MessageKey("OperationMessage", "Setters");
export const AddSetter = new MessageKey("OperationMessage", "AddSetter");
export const MultiSetter = new MessageKey("OperationMessage", "MultiSetter");
}

export const OperationSymbol = new Type<OperationSymbol>("Operation");
Expand Down

0 comments on commit 2fa7728

Please sign in to comment.