Add button for opening public docs in a new tab

This commit is contained in:
2018-01-25 16:52:56 +00:00
parent ade473d585
commit 8db259d147
9 changed files with 53 additions and 15 deletions

View File

@@ -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: {