Add button for opening public docs in a new tab
This commit is contained in:
@@ -24,6 +24,16 @@ export default Controller.extend({
|
||||
jsonShowTree: computed.equal('jsonView', 'tree'),
|
||||
jsonShowSource: computed.equal('jsonView', 'source'),
|
||||
|
||||
publicItemURL: computed('model.documentMetaData.path', function(){
|
||||
let path = this.get('model.documentMetaData.path');
|
||||
|
||||
if (path.match(/public\//)) {
|
||||
return this.get('storage.client').getItemURL(path);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}),
|
||||
|
||||
metadataHidden: false,
|
||||
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user