Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
sencha-core
Commits
59d01332
Commit
59d01332
authored
Mar 23, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Budget WIP
parent
24ca0b7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
ObjectMemberPanel.js
www/view/ObjectMemberPanel.js
+18
-3
POObjectMembers.js
www/view/field/POObjectMembers.js
+1
-0
No files found.
www/view/ObjectMemberPanel.js
View file @
59d01332
...
...
@@ -51,7 +51,7 @@ Ext.define('PO.view.ObjectMemberPanel', {
id
:
'actualMemberStore'
,
model
:
'PO.model.ObjectMemberModel'
});
me
.
actualMemberStore
=
actualMemberStore
;
me
.
actualMemberStore
=
actualMemberStore
;
// Row editor for the TaskMembersPanel.
var
taskMemberRowEditing
=
Ext
.
create
(
'Ext.grid.plugin.RowEditing'
,
{
...
...
@@ -217,10 +217,18 @@ Ext.define('PO.view.ObjectMemberPanel', {
me
.
oldValue
.
forEach
(
function
(
v
)
{
oldAssigneesNorm
[
v
.
user_id
]
=
v
.
role_id
;
});
newAssignees
.
forEach
(
function
(
v
)
{
newAssigneesNorm
[
v
.
user_id
]
=
v
.
role_id
;
});
if
(
JSON
.
stringify
(
oldAssigneesNorm
)
!==
JSON
.
stringify
(
newAssigneesNorm
))
{
// Write new value to field
me
.
objectMemberField
.
setValue
(
newAssignees
);
// 2021-03-05 fraber: We need to sync the store, because it might
// have a different proxy than the model. In the case of a tree-
// panel this is a custom implementation, so it needs to be the
// store that saves, not the model!
var
model
=
me
.
model
;
if
(
!!
model
)
{
model
.
set
(
me
.
modelField
,
newAssignees
);
model
.
store
.
sync
();
}
}
me
.
hide
();
// hide the TaskProperty panel
},
...
...
@@ -264,6 +272,13 @@ Ext.define('PO.view.ObjectMemberPanel', {
me
.
potentialMemberStore
=
store
;
},
setModelAndField
:
function
(
model
,
field
)
{
var
me
=
this
;
me
.
model
=
model
;
me
.
modelField
=
field
;
},
/**
* Show the properties of the specified task model.
* Write changes back to the task immediately (at the moment).
...
...
www/view/field/POObjectMembers.js
View file @
59d01332
...
...
@@ -257,6 +257,7 @@ Ext.define('PO.view.field.POObjectMembers', {
});
}
me
.
objectMemberPanel
.
setModelAndField
(
budgetItem
,
"members"
);
me
.
objectMemberPanel
.
setField
(
me
);
me
.
objectMemberPanel
.
setStore
(
me
.
memberStore
);
me
.
objectMemberPanel
.
setValue
(
fieldValue
);
...
...
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