Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Genesys Website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Website
Commits
7b7e85f0
Commit
7b7e85f0
authored
Dec 21, 2018
by
Maxym Borodenko
Committed by
Matija Obreza
Dec 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added "Permissions" button to KPI Execution display page
parent
3a239c02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/kpi/ui/admin/ExecutionDisplay.tsx
src/kpi/ui/admin/ExecutionDisplay.tsx
+4
-1
src/model/kpi/Execution.ts
src/model/kpi/Execution.ts
+5
-0
No files found.
src/kpi/ui/admin/ExecutionDisplay.tsx
View file @
7b7e85f0
...
...
@@ -7,13 +7,15 @@ import { deleteExecution, executeExecution, getExecution, listDimensions, listPa
// Models
import
ExecutionDetails
from
'
model/kpi/ExecutionDetails
'
;
import
ExecutionRun
from
'
model/kpi/ExecutionRun
'
;
import
Execution
from
'
model/kpi/Execution
'
;
// Service
import
KpiService
from
'
service/genesys/KpiService
'
;
// UI
import
{
PageContents
,
PageSection
}
from
'
ui/layout/PageLayout
'
;
import
Loading
from
'
ui/common/Loading
'
;
import
ContentHeaderWithButton
from
'
ui/common/heading/ContentHeaderWithButton
'
;
import
Permissions
from
'
ui/common/permission/Permissions
'
;
import
PrettyDate
from
'
ui/common/time/PrettyDate
'
;
import
Loading
from
'
ui/common/Loading
'
;
import
{
Properties
,
PropertiesItem
}
from
'
ui/common/Properties
'
;
import
Grid
from
'
@material-ui/core/Grid/Grid
'
;
import
Button
from
'
@material-ui/core/Button
'
;
...
...
@@ -104,6 +106,7 @@ class ExecutionDisplay extends React.Component<IExecutionProps, any> {
<
ExecutionDialog
execution
=
{
executionDetails
&&
executionDetails
.
execution
}
buttonLabel
=
{
t
(
'
common:action.edit
'
)
}
/>
<
Button
variant
=
"contained"
onClick
=
{
this
.
delete
}
>
{
t
(
'
common:action.delete
'
)
}
</
Button
>
<
Button
variant
=
"contained"
onClick
=
{
this
.
execute
}
>
{
t
(
'
kpi.admin.p.executionDisplay.execute
'
)
}
</
Button
>
{
executionDetails
.
execution
.
_permissions
.
manage
&&
<
Permissions
clazz
=
{
Execution
.
clazz
}
id
=
{
executionDetails
.
execution
.
id
}
variant
=
"contained"
/>
}
</
div
>
}
/>
<
PageContents
className
=
"pt-1rem"
>
...
...
src/model/kpi/Execution.ts
View file @
7b7e85f0
import
ExecutionDimension
from
'
model/kpi/ExecutionDimension
'
;
import
KPIParameter
from
'
model/kpi/KPIParameter
'
;
import
{
Permissions
}
from
'
model/acl/ACL
'
;
import
ExecutionGroup
from
'
./ExecutionGroup
'
;
/*
* Defined in Swagger as '#/definitions/Execution'
*/
class
Execution
{
public
_permissions
:
Permissions
;
public
_class
:
string
;
public
static
clazz
:
string
=
'
org.genesys2.server.model.kpi.Execution
'
;
public
active
:
boolean
;
public
createdBy
:
number
;
public
createdDate
:
Date
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment