Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15382380
D17979.id43236.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D17979.id43236.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -13,7 +13,7 @@
'core.pkg.js' => '599698a7',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '7d4cfa59',
- 'differential.pkg.js' => '55be3b5f',
+ 'differential.pkg.js' => '5d8e15aa',
'diffusion.pkg.css' => 'b93d9b8c',
'diffusion.pkg.js' => '84c8f8fd',
'favicon.ico' => '30672e08',
@@ -392,7 +392,7 @@
'rsrc/js/application/dashboard/behavior-dashboard-tab-panel.js' => 'd4eecc63',
'rsrc/js/application/diff/DiffChangeset.js' => 'cf4e2140',
'rsrc/js/application/diff/DiffChangesetList.js' => '541206ba',
- 'rsrc/js/application/diff/DiffInline.js' => '93cbb03f',
+ 'rsrc/js/application/diff/DiffInline.js' => 'ca0fafde',
'rsrc/js/application/diff/ScrollObjective.js' => '9df4e4e2',
'rsrc/js/application/diff/ScrollObjectiveList.js' => '085dd101',
'rsrc/js/application/diff/behavior-preview-link.js' => '051c7832',
@@ -779,7 +779,7 @@
'phabricator-dashboard-css' => 'fe5b1869',
'phabricator-diff-changeset' => 'cf4e2140',
'phabricator-diff-changeset-list' => '541206ba',
- 'phabricator-diff-inline' => '93cbb03f',
+ 'phabricator-diff-inline' => 'ca0fafde',
'phabricator-drag-and-drop-file-upload' => '58dea2fa',
'phabricator-draggable-list' => 'bea6e7f4',
'phabricator-fatal-config-template-css' => '8f18fa41',
@@ -1608,9 +1608,6 @@
'javelin-stratcom',
'javelin-dom',
),
- '93cbb03f' => array(
- 'javelin-dom',
- ),
'93d0c9e3' => array(
'javelin-behavior',
'javelin-stratcom',
@@ -1979,6 +1976,9 @@
'phabricator-shaped-request',
'conpherence-thread-manager',
),
+ 'ca0fafde' => array(
+ 'javelin-dom',
+ ),
'caade6f2' => array(
'javelin-behavior',
'javelin-request',
diff --git a/webroot/rsrc/js/application/diff/DiffInline.js b/webroot/rsrc/js/application/diff/DiffInline.js
--- a/webroot/rsrc/js/application/diff/DiffInline.js
+++ b/webroot/rsrc/js/application/diff/DiffInline.js
@@ -33,6 +33,7 @@
_isDraft: null,
_isFixed: null,
_isEditing: false,
+ _isNew: false,
bindToRow: function(row) {
this._row = row;
@@ -73,6 +74,7 @@
this._isGhost = data.isGhost;
this._changesetID = data.changesetID;
+ this._isNew = false;
this.setInvisible(false);
@@ -87,6 +89,7 @@
this._length = parseInt(data.length, 10);
this._isNewFile = data.isNewFile;
this._changesetID = data.changesetID;
+ this._isNew = true;
// Insert the comment after any other comments which already appear on
// the same row.
@@ -110,6 +113,7 @@
this._length = inline._length;
this._isNewFile = inline._isNewFile;
this._changesetID = inline._changesetID;
+ this._isNew = true;
this._replyToCommentPHID = inline._phid;
@@ -198,6 +202,13 @@
return;
}
+ // If this is a new comment which we aren't editing, don't show anything:
+ // the use started a comment or reply, then cancelled it.
+ if (this._isNew && !this._isEditing) {
+ objective.hide();
+ return;
+ }
+
var changeset = this.getChangeset();
if (!changeset.isVisible()) {
objective.hide();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 12:06 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7692542
Default Alt Text
D17979.id43236.diff (3 KB)
Attached To
Mode
D17979: When a user cancels a new inline, clear it from the objective list
Attached
Detach File
Event Timeline
Log In to Comment