aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-07-10 15:58:04 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-07-10 15:58:04 -0400
commitabb53ad8a5cbf2439aac420e9ec16a3a461dec1e (patch)
tree648cf2323a1c766d0dbfa007abcaed147be79fa3 /src
parent5615c1cb2fc62b89901a419c39d8a02754ff1d69 (diff)
Added color for ReadOnly mode
Diffstat (limited to 'src')
-rw-r--r--src/client/DocServer.ts2
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts
index 443f70bb1..97147f5e4 100644
--- a/src/client/DocServer.ts
+++ b/src/client/DocServer.ts
@@ -32,6 +32,8 @@ export namespace DocServer {
// _cache = {};
}
+ export function isReadOnly() { return _isReadOnly; }
+
export function prepend(extension: string): string {
return window.location.origin + extension;
}
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index d477f96f0..57964442d 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -426,6 +426,7 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp
stackCreated = (stack: any) => {
//stack.header.controlsContainer.find('.lm_popout').hide();
+ stack.header.element[0].style.backgroundColor = DocServer.isReadOnly() ? "#228540" : undefined;
stack.header.controlsContainer.find('.lm_close') //get the close icon
.off('click') //unbind the current click handler
.click(action(function () {