mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 03:37:43 +02:00
EZQMS-1392: Obsolete documents (#7833)
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
@@ -150,6 +150,7 @@ export function createModel (builder: Builder): void {
|
||||
['inProgress', documents.string.InProgress, {}],
|
||||
['effective', documents.string.Effective, {}],
|
||||
['archived', documents.string.Archived, {}],
|
||||
['obsolete', documents.string.Obsolete, {}],
|
||||
['all', documents.string.All, {}]
|
||||
]
|
||||
}
|
||||
@@ -170,6 +171,7 @@ export function createModel (builder: Builder): void {
|
||||
['effective', documents.string.Effective, {}],
|
||||
['inProgress', documents.string.InProgress, {}],
|
||||
['archived', documents.string.Archived, {}],
|
||||
['obsolete', documents.string.Obsolete, {}],
|
||||
['all', documents.string.All, {}]
|
||||
]
|
||||
}
|
||||
@@ -774,16 +776,37 @@ export function createModel (builder: Builder): void {
|
||||
documents.action.DeleteDocument
|
||||
)
|
||||
|
||||
// createAction(
|
||||
// builder,
|
||||
// {
|
||||
// action: documents.actionImpl.ArchiveDocument,
|
||||
// label: view.string.Archive,
|
||||
// icon: view.icon.Archive,
|
||||
// input: 'any',
|
||||
// category: view.category.General,
|
||||
// target: documents.class.Document,
|
||||
// visibilityTester: documents.function.CanArchiveDocument,
|
||||
// query: {
|
||||
// state: DocumentState.Effective
|
||||
// },
|
||||
// context: {
|
||||
// mode: ['context', 'browser'],
|
||||
// group: 'remove'
|
||||
// }
|
||||
// },
|
||||
// documents.action.ArchiveDocument
|
||||
// )
|
||||
|
||||
createAction(
|
||||
builder,
|
||||
{
|
||||
action: documents.actionImpl.ArchiveDocument,
|
||||
label: view.string.Archive,
|
||||
action: documents.actionImpl.MakeDocumentObsolete,
|
||||
label: documents.string.MakeDocumentObsolete,
|
||||
icon: view.icon.Archive,
|
||||
input: 'any',
|
||||
category: view.category.General,
|
||||
target: documents.class.Document,
|
||||
visibilityTester: documents.function.CanArchiveDocument,
|
||||
visibilityTester: documents.function.CanMakeDocumentObsolete,
|
||||
query: {
|
||||
state: DocumentState.Effective
|
||||
},
|
||||
@@ -792,7 +815,7 @@ export function createModel (builder: Builder): void {
|
||||
group: 'remove'
|
||||
}
|
||||
},
|
||||
documents.action.ArchiveDocument
|
||||
documents.action.MakeDocumentObsolete
|
||||
)
|
||||
|
||||
createAction(
|
||||
|
||||
@@ -68,6 +68,7 @@ export default mergeIds(documentsId, documents, {
|
||||
TransferTemplate: '' as ViewAction,
|
||||
DeleteDocument: '' as ViewAction,
|
||||
ArchiveDocument: '' as ViewAction,
|
||||
MakeDocumentObsolete: '' as ViewAction,
|
||||
TransferDocument: '' as ViewAction,
|
||||
EditDocSpace: '' as ViewAction
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user