Skip to content

Commit

Permalink
Merge pull request #412 from Kitware/fix-status-cache
Browse files Browse the repository at this point in the history
Fix status caching issue when reassigning project
  • Loading branch information
jeffbaumes committed Sep 23, 2016
2 parents 15e91c3 + bddc38d commit 8fd777f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/resonant-laboratory/models/UserPreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ you move or delete this item, your preferences will be lost.`,
// made), display a notification about where the project was moved.
// Because we're now working on a copy, we should also fire the project
// creation event
window.mainPage.project.updateStatus();
window.mainPage.project.cache.status.then(status => {
let notification = 'You are now working on a copy of this project in ';
if (status.visibility === 'PublicScratch') {
notification = 'the public scratch space. Log in to take ownership of this project.';
notification += 'the public scratch space. Log in to take ownership of this project.';
} else if (status.visibility === 'PrivateUser') {
notification += 'your Private folder.';
} else {
Expand Down

0 comments on commit 8fd777f

Please sign in to comment.