diff options
| author | Jens Mönig <jens@moenig.org> | 2014-06-23 13:25:31 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2014-06-23 13:25:31 +0200 |
| commit | 598f65f3d626326598d425001c280b754339f703 (patch) | |
| tree | 70d3b534c1a3bfda17e7e39a2a31b6a2b023fdfa /gui.js | |
| parent | 9c1d06b9ef03020989c39a10fea248ec993773e3 (diff) | |
| parent | 7e5925de3de6357fb1e0135fe35f8d39159fb486 (diff) | |
| download | snap-byow-598f65f3d626326598d425001c280b754339f703.tar.gz snap-byow-598f65f3d626326598d425001c280b754339f703.zip | |
Merge pull request #480 from cs10/kunal/update-share-btn
Kunal/update share btn
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4836,9 +4836,13 @@ ProjectDialogMorph.prototype.shareProject = function () { function () { SnapCloud.disconnect(); proj.Public = 'true'; + myself.unshareButton.show(); + myself.shareButton.hide(); entry.label.isBold = true; entry.label.drawNew(); entry.label.changed(); + myself.buttons.fixLayout(); + myself.drawNew(); myself.ide.showMessage('shared.', 2); }, myself.ide.cloudError(), @@ -4873,9 +4877,13 @@ ProjectDialogMorph.prototype.unshareProject = function () { function () { SnapCloud.disconnect(); proj.Public = 'false'; + myself.shareButton.show(); + myself.unshareButton.hide(); entry.label.isBold = false; entry.label.drawNew(); entry.label.changed(); + myself.buttons.fixLayout(); + myself.drawNew(); myself.ide.showMessage('unshared.', 2); }, myself.ide.cloudError(), |
