From 2b143dfc0fbd062a22896f26cdf73abfdaf5d567 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Tue, 16 Feb 2021 11:51:44 -0800 Subject: [PATCH] [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 --- example/styleguide/bundle.js | 4 ++-- src/MCT.js | 1 + src/ui/layout/BrowseBar.vue | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example/styleguide/bundle.js b/example/styleguide/bundle.js index 1f038f40cf..e1af53082a 100644 --- a/example/styleguide/bundle.js +++ b/example/styleguide/bundle.js @@ -138,7 +138,7 @@ define([ "id": "styleguide:home", "priority": "preferred", "model": { - "type": "folder", + "type": "noneditable.folder", "name": "Style Guide Home", "location": "ROOT", "composition": [ @@ -155,7 +155,7 @@ define([ "id": "styleguide:ui-elements", "priority": "preferred", "model": { - "type": "folder", + "type": "noneditable.folder", "name": "UI Elements", "location": "styleguide:home", "composition": [ diff --git a/src/MCT.js b/src/MCT.js index c8120569ba..738b235492 100644 --- a/src/MCT.js +++ b/src/MCT.js @@ -283,6 +283,7 @@ define([ this.install(this.plugins.NewFolderAction()); this.install(this.plugins.ViewDatumAction()); this.install(this.plugins.ObjectInterceptors()); + this.install(this.plugins.NonEditableFolder()); } MCT.prototype = Object.create(EventEmitter.prototype); diff --git a/src/ui/layout/BrowseBar.vue b/src/ui/layout/BrowseBar.vue index 15e9cc819b..233871b8f7 100644 --- a/src/ui/layout/BrowseBar.vue +++ b/src/ui/layout/BrowseBar.vue @@ -19,7 +19,8 @@ >