From e916d967929cfa1b09d1965e1921534afbb83628 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 8 Jun 2018 15:33:02 +0100 Subject: [PATCH] WIP: basic backend for project-output-file agent --- .../coffee/Features/LinkedFiles/LinkedFilesController.coffee | 3 ++- services/web/app/views/project/editor/file-tree.pug | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee b/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee index 13de54e947..00c061778c 100644 --- a/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee +++ b/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee @@ -8,7 +8,8 @@ _ = require 'underscore' module.exports = LinkedFilesController = { Agents: { url: require('./UrlAgent'), - project_file: require('./ProjectFileAgent') + project_file: require('./ProjectFileAgent'), + project_output_file: require('./ProjectOutputFileAgent') } _getAgent: (provider) -> diff --git a/services/web/app/views/project/editor/file-tree.pug b/services/web/app/views/project/editor/file-tree.pug index 70fa5badc9..89e6db9f17 100644 --- a/services/web/app/views/project/editor/file-tree.pug +++ b/services/web/app/views/project/editor/file-tree.pug @@ -345,7 +345,9 @@ script(type='text/ng-template', id='newDocModalTemplate') // Project Linked Files Modal script(type='text/ng-template', id='projectLinkedFileModalTemplate') .modal-header - h3 New file from Project ({{ isOutputFilesMode }}) + h3 + span(ng-if="!isOutputFilesMode") New file from Project + span(ng-if="isOutputFilesMode") New file from Project output .modal-body div