- {{/unless}}
- {{/if}}
+ {{/unless}}
{{/if}}
{{/if}}
diff --git a/addon/locales/en/translations.js b/addon/locales/en/translations.js
index 69b6d548d..1279b6f7c 100644
--- a/addon/locales/en/translations.js
+++ b/addon/locales/en/translations.js
@@ -220,19 +220,11 @@ export default {
createNewProject: 'Create new project',
connectToExisting: 'Connect file to existing OSF project',
enterProjectTitle: 'Enter project title',
- enterComponentTitle: 'Enter component title',
newProjectMessage: 'You have selected to create a new public project for your file. Users will still have access to your file unless the project becomes private.',
chooseProject: 'Choose project',
projectSelectMessage: 'The list of projects appearing are projects and components for which you have write access. Registrations are not included here.',
noProjectsExistError: 'You have no available projects. Go back to create a new project.',
- organizeProject: 'Organize',
- organizeParentNode: 'You can organize your file by storing it in the project or its own component.',
- organizeChildNode: 'You can organize your file by storing it in the component or its own component.',
- createComponent: 'Create component',
- couldNotCreateComponent: 'Could not create component. Please try again.',
couldNotCreateProject: 'Could not create project. Please try again.',
- useCurrentComponent: 'Use current component',
- useCurrentProject: 'Use current project',
convertOrCopyMessage: {
project: 'Clicking "Move file" will immediately make changes to your OSF project and move your file.',
component: 'Clicking "Move file" will immediately make changes to your OSF component and move your file.',
@@ -245,7 +237,6 @@ export default {
couldNotMoveFile: 'Could not move file. Please try again',
keepWorkingHere: 'Keep working here',
goToNewProject: 'Go to new project',
- goToNewComponent: 'Go to new component',
goToComponent: 'Go to component',
goToProject: 'Go to project',
},
From bf1701f9022678e0f51628e774883d8df0d201b4 Mon Sep 17 00:00:00 2001
From: "James C. Davis"
Date: Fri, 9 Feb 2018 14:54:40 -0500
Subject: [PATCH 2/3] Update CHANGELOG
---
CHANGELOG.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a0a7dc78d..2e7788fae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Removed
+- Ability to create new components when moving files.
## [0.14.0] - 2018-02-07
### Added
From a63183c63ad4fcef2de94d0f16036053d685c14d Mon Sep 17 00:00:00 2001
From: "James C. Davis"
Date: Fri, 9 Feb 2018 19:58:42 -0500
Subject: [PATCH 3/3] Disable "Cancel", "Back", and "Move file" buttons while
moving
---
addon/components/file-browser/component.js | 5 ++++-
addon/components/file-browser/template.hbs | 6 +++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/addon/components/file-browser/component.js b/addon/components/file-browser/component.js
index 8a9aa1eb4..fb2c0d87b 100644
--- a/addon/components/file-browser/component.js
+++ b/addon/components/file-browser/component.js
@@ -44,6 +44,7 @@ export default Ember.Component.extend(Analytics, {
projectSelectState: 'main',
isInputInvalid: true,
nodeLink: Ember.computed.alias('node.links.html'),
+ isMoving: false,
init() {
this._super(...arguments);
@@ -414,6 +415,7 @@ export default Ember.Component.extend(Analytics, {
this.set('isInputInvalid', false);
},
setMoveFile() {
+ this.set('isMoving', true);
let selectedItem = this.get('selectedItems.firstObject');
let title = this.get('nodeTitle');
@@ -455,6 +457,7 @@ export default Ember.Component.extend(Analytics, {
})
.catch(() => this.get('toast').error(
this.get('i18n').t('eosf.components.moveToProject.couldNotMoveFile')
- ));
+ ))
+ .then(() => this.set('isMoving', false));
},
});
diff --git a/addon/components/file-browser/template.hbs b/addon/components/file-browser/template.hbs
index 151ecb166..42a07ac86 100644
--- a/addon/components/file-browser/template.hbs
+++ b/addon/components/file-browser/template.hbs
@@ -178,10 +178,10 @@
}}
{{/modal.body}}
{{#modal.footer}}
- {{#bs-button onClick=(action 'closeModal') type='default'}}Cancel{{/bs-button}}
+ {{#bs-button disabled=isMoving onClick=(action 'closeModal') type='default'}}Cancel{{/bs-button}}
{{#if (not-eq projectSelectState 'main')}}
- {{#bs-button onClick=(action 'changeProjectSelectState' 'main') type='default'}}Back{{/bs-button}}
- {{#bs-button disabled=isInputInvalid onClick=(action 'setMoveFile') type='primary'}}Move file{{/bs-button}}
+ {{#bs-button disabled=isMoving onClick=(action 'changeProjectSelectState' 'main') type='default'}}Back{{/bs-button}}
+ {{#bs-button disabled=(or isInputInvalid isMoving) onClick=(action 'setMoveFile') type='primary'}}Move file{{/bs-button}}
{{/if}}
{{/modal.footer}}
{{/bs-modal}}