projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b third try
[osm/UI.git]
/
skyquake
/
plugins
/
launchpad
/
src
/
launchpad_card
/
nsrConfigPrimitives.jsx
diff --git
a/skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx
b/skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx
index
9d0cdba
..
acafdd0
100644
(file)
--- a/
skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx
+++ b/
skyquake/plugins/launchpad/src/launchpad_card/nsrConfigPrimitives.jsx
@@
-1,6
+1,6
@@
/*
/*
- *
+ *
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-162,6
+162,7
@@
class NsrConfigPrimitives extends React.Component {
}
constructConfigPrimitiveTabs = (tabList, tabPanels) => {
let self = this;
}
constructConfigPrimitiveTabs = (tabList, tabPanels) => {
let self = this;
+ const hasAccess = self.props.hasAccess;
let defaultFromRpc = '';
//coded here for dev purposes
let mandatoryFieldValue = 'true';
let defaultFromRpc = '';
//coded here for dev purposes
let mandatoryFieldValue = 'true';
@@
-307,7
+308,11
@@
class NsrConfigPrimitives extends React.Component {
</div>
)
})}
</div>
)
})}
- <Button label="Submit" isLoading={this.state.isSaving} onClick={this.handleExecuteClick.bind(this, nsConfigPrimitiveIndex)} className="dark"/>
+ {
+ hasAccess ?
+ <Button label="Submit" isLoading={this.state.isSaving} onClick={this.handleExecuteClick.bind(this, nsConfigPrimitiveIndex)} className="dark"/>
+ : null
+ }
</TabPanel>
)
);
</TabPanel>
)
);