Fix actions help intl (#3339)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-06-05 15:06:15 +06:00 committed by GitHub
parent b6f9dba84a
commit 0a0c2d15be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 14 deletions

View File

@ -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,

View File

@ -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,

View File

@ -100,6 +100,7 @@
"ShowColors": "Use colors",
"Show": "Show",
"FilterArrayAll": "includes all",
"FilterArrayAny": "includes any"
"FilterArrayAny": "includes any",
"Or": "Or"
}
}

View File

@ -96,6 +96,7 @@
"ShowColors": "Использовать цвета",
"Show": "Отображение",
"FilterArrayAll": "содержит все",
"FilterArrayAny": "содержит любое из"
"FilterArrayAny": "содержит любое из",
"Or": "Или"
}
}

View File

@ -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">

View File

@ -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,

View File

@ -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: {

View File

@ -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">