mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Fix actions help intl (#3339)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
b6f9dba84a
commit
0a0c2d15be
@ -1542,7 +1542,7 @@ export function createModel (builder: Builder): void {
|
||||
},
|
||||
label: tracker.string.Priority,
|
||||
icon: tracker.icon.PriorityHigh,
|
||||
keyBinding: ['keyP-keyR'],
|
||||
keyBinding: ['keyP->keyR'],
|
||||
input: 'any',
|
||||
category: tracker.category.Tracker,
|
||||
target: tracker.class.Issue,
|
||||
|
@ -77,7 +77,6 @@ export default mergeIds(viewId, view, {
|
||||
},
|
||||
string: {
|
||||
Table: '' as IntlString,
|
||||
Delete: '' as IntlString,
|
||||
Role: '' as IntlString,
|
||||
// Keybaord actions
|
||||
MoveUp: '' as IntlString,
|
||||
@ -91,7 +90,6 @@ export default mergeIds(viewId, view, {
|
||||
SelectDown: '' as IntlString,
|
||||
ShowPreview: '' as IntlString,
|
||||
ShowActions: '' as IntlString,
|
||||
Open: '' as IntlString,
|
||||
// Action categories
|
||||
General: '' as IntlString,
|
||||
Navigation: '' as IntlString,
|
||||
|
@ -100,6 +100,7 @@
|
||||
"ShowColors": "Use colors",
|
||||
"Show": "Show",
|
||||
"FilterArrayAll": "includes all",
|
||||
"FilterArrayAny": "includes any"
|
||||
"FilterArrayAny": "includes any",
|
||||
"Or": "Or"
|
||||
}
|
||||
}
|
||||
|
@ -96,6 +96,7 @@
|
||||
"ShowColors": "Использовать цвета",
|
||||
"Show": "Отображение",
|
||||
"FilterArrayAll": "содержит все",
|
||||
"FilterArrayAny": "содержит любое из"
|
||||
"FilterArrayAny": "содержит любое из",
|
||||
"Or": "Или"
|
||||
}
|
||||
}
|
||||
|
@ -291,12 +291,12 @@
|
||||
{#if action.keyBinding}
|
||||
{#each action.keyBinding as key, i}
|
||||
{#if i !== 0}
|
||||
<div class="ml-2 mr-2">or</div>
|
||||
<div class="ml-2 mr-2 lower"><Label label={view.string.Or} /></div>
|
||||
{/if}
|
||||
<div class="flex-row-center">
|
||||
{#each formatKey(key) as k, jj}
|
||||
{#if jj !== 0}
|
||||
<div class="ml-1 mr-1">then</div>
|
||||
<div class="ml-1 mr-1 lower"><Label label={view.string.Then} /></div>
|
||||
{/if}
|
||||
{#each k as kk, j}
|
||||
<div class="flex-center text-sm key-box">
|
||||
|
@ -71,7 +71,6 @@ export default mergeIds(viewId, view, {
|
||||
Grouping: '' as IntlString,
|
||||
Ordering: '' as IntlString,
|
||||
Manual: '' as IntlString,
|
||||
Then: '' as IntlString,
|
||||
ShowPreviewOnClick: '' as IntlString,
|
||||
Shown: '' as IntlString,
|
||||
ShowEmptyGroups: '' as IntlString,
|
||||
|
@ -753,7 +753,11 @@ const view = plugin(viewId, {
|
||||
Public: '' as IntlString,
|
||||
Hide: '' as IntlString,
|
||||
Assigned: '' as IntlString,
|
||||
Open: '' as IntlString,
|
||||
Created: '' as IntlString,
|
||||
Delete: '' as IntlString,
|
||||
Then: '' as IntlString,
|
||||
Or: '' as IntlString,
|
||||
Subscribed: '' as IntlString
|
||||
},
|
||||
icon: {
|
||||
|
@ -59,18 +59,18 @@
|
||||
const rawActions = await client.findAll(view.class.Action, [])
|
||||
|
||||
const openAction = rawActions.find(
|
||||
(action) => action.label === 'view:string:Open' && action.category === 'view:category:General'
|
||||
(action) => action.label === view.string.Open && action.category === view.category.General
|
||||
)
|
||||
const deleteAction = rawActions.find(
|
||||
(action) => action.label === 'view:string:Delete' && action.category === 'view:category:General'
|
||||
(action) => action.label === view.string.Delete && action.category === view.category.General
|
||||
)
|
||||
|
||||
actions = rawActions.filter(
|
||||
(action) =>
|
||||
action.keyBinding &&
|
||||
action.keyBinding.length !== 0 &&
|
||||
action.label !== 'view:string:Open' &&
|
||||
action.label !== 'view:string:Delete'
|
||||
action.label !== view.string.Open &&
|
||||
action.label !== view.string.Delete
|
||||
)
|
||||
|
||||
deleteAction && actions.unshift(deleteAction)
|
||||
@ -165,12 +165,12 @@
|
||||
{#if action.keyBinding}
|
||||
{#each action.keyBinding as key, i}
|
||||
{#if i !== 0}
|
||||
<div class="ml-2 mr-2">or</div>
|
||||
<div class="ml-2 mr-2 lower"><Label label={view.string.Or} /></div>
|
||||
{/if}
|
||||
<div class="flex-row-center">
|
||||
{#each formatKey(key) as k, jj}
|
||||
{#if jj !== 0}
|
||||
<div class="ml-1 mr-1">then</div>
|
||||
<div class="ml-1 mr-1 lower"><Label label={view.string.Then} /></div>
|
||||
{/if}
|
||||
{#each k as kk, j}
|
||||
<div class="flex-center text-sm key-box">
|
||||
|
Loading…
Reference in New Issue
Block a user