mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Store 'canEdit' property when auto-saving or switching editors
Added in b9835f75d3
.
Bug: T224319
Change-Id: I05d6aa500ba921d114f33972369ad4dd53b8e140
This commit is contained in:
parent
4a7231f3ee
commit
fbb56d66fa
|
@ -570,6 +570,7 @@ ve.init.mw.ArticleTarget.prototype.storeDocState = function ( html ) {
|
|||
basetimestamp: this.baseTimeStamp,
|
||||
starttimestamp: this.startTimeStamp,
|
||||
oldid: this.revid,
|
||||
canEdit: this.canEdit,
|
||||
checkboxesDef: this.checkboxesDef,
|
||||
checkboxesMessages: this.checkboxesMessages
|
||||
}
|
||||
|
@ -2328,6 +2329,7 @@ ve.init.mw.ArticleTarget.prototype.getWikitextDataPromiseForDoc = function ( mod
|
|||
data.basetimestamp = target.baseTimeStamp;
|
||||
data.starttimestamp = target.startTimeStamp;
|
||||
data.oldid = target.revid;
|
||||
data.canEdit = target.canEdit;
|
||||
data.checkboxesDef = target.checkboxesDef;
|
||||
return response;
|
||||
} );
|
||||
|
|
|
@ -54,6 +54,8 @@ QUnit.test( 'init', function ( assert ) {
|
|||
basetimestamp: '20161119005107',
|
||||
starttimestamp: '20180831122319',
|
||||
oldid: 1804,
|
||||
blockinfo: null,
|
||||
canEdit: true,
|
||||
content: '<!DOCTYPE html>\n' +
|
||||
'<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://localhost/MediaWiki/core/index.php/Special:Redirect/revision/1804">' +
|
||||
'<head prefix="mwr: http://localhost/MediaWiki/core/index.php/Special:Redirect/"><meta property="mw:TimeUuid" content="a4fc0409-ad18-11e8-9b45-dd8cefbedb6d"/>' +
|
||||
|
|
Loading…
Reference in a new issue