[NonEditable Folder Plugin] Default Install, Browse Bar Update, StyleGuide Use (#3676)

* default noneditable folder plugin, change styleguide folders to uneditable folder types, browse bar object name no longer input box if not createable

* moved plugin to mct.js instead of index.html

Co-authored-by: Deep Tailor <deep.j.tailor@nasa.gov>
This commit is contained in:
Jamie V 2021-02-16 11:51:44 -08:00 committed by GitHub
parent 9405272f3b
commit 2b143dfc0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -138,7 +138,7 @@ define([
"id": "styleguide:home", "id": "styleguide:home",
"priority": "preferred", "priority": "preferred",
"model": { "model": {
"type": "folder", "type": "noneditable.folder",
"name": "Style Guide Home", "name": "Style Guide Home",
"location": "ROOT", "location": "ROOT",
"composition": [ "composition": [
@ -155,7 +155,7 @@ define([
"id": "styleguide:ui-elements", "id": "styleguide:ui-elements",
"priority": "preferred", "priority": "preferred",
"model": { "model": {
"type": "folder", "type": "noneditable.folder",
"name": "UI Elements", "name": "UI Elements",
"location": "styleguide:home", "location": "styleguide:home",
"composition": [ "composition": [

View File

@ -283,6 +283,7 @@ define([
this.install(this.plugins.NewFolderAction()); this.install(this.plugins.NewFolderAction());
this.install(this.plugins.ViewDatumAction()); this.install(this.plugins.ViewDatumAction());
this.install(this.plugins.ObjectInterceptors()); this.install(this.plugins.ObjectInterceptors());
this.install(this.plugins.NonEditableFolder());
} }
MCT.prototype = Object.create(EventEmitter.prototype); MCT.prototype = Object.create(EventEmitter.prototype);

View File

@ -19,7 +19,8 @@
></span> ></span>
</div> </div>
<span <span
class="l-browse-bar__object-name c-object-label__name c-input-inline" class="l-browse-bar__object-name c-object-label__name"
:class="{ 'c-input-inline' : type.creatable}"
:contenteditable="type.creatable" :contenteditable="type.creatable"
@blur="updateName" @blur="updateName"
@keydown.enter.prevent @keydown.enter.prevent