-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.1.x][6533] Node selector control should only provide the user with an Edit option for content items that are editable by Studio #3705
[4.1.x][6533] Node selector control should only provide the user with an Edit option for content items that are editable by Studio #3705
Conversation
…they were being labeled as embedded #6533
static-assets/components/cstudio-forms/controls/node-selector.js
Outdated
Show resolved
Hide resolved
var me = this; | ||
|
||
var site = CStudioAuthoringContext.site; | ||
var path = this._self.repoPath; | ||
var isUploadOverwrite = true; | ||
|
||
for (var i = 0; i < this.properties.length; i++) { | ||
if (this.properties[i].name === 'repoPath') { | ||
path = this.properties[i].value; | ||
|
||
path = this.processPathsForMacros(path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about all this removed code, including parsing the path macros, etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file upload behavior when editing was to upload/override the item (removed code). From the ticket, the behavior should be displaying the editor (if editable). That's what the browse-file datasource does.
8c1569b
to
b28d0a0
Compare
craftercms/craftercms#6533