Use TransferContext for project
This commit is contained in:
parent
850881a2ef
commit
1fb99264a9
2 changed files with 34 additions and 0 deletions
7
app/views/projects/transfer.js.haml
Normal file
7
app/views/projects/transfer.js.haml
Normal file
|
@ -0,0 +1,7 @@
|
|||
- if @project.errors[:namespace_id].present?
|
||||
:plain
|
||||
$("#tab-transfer .errors-holder").replaceWith(errorMessage('#{escape_javascript(@project.errors[:namespace_id].first)}'));
|
||||
$("#tab-transfer .form-actions input").removeAttr('disabled').removeClass('disabled');
|
||||
- else
|
||||
:plain
|
||||
location.href = "#{edit_project_path(@project)}";
|
Loading…
Add table
Add a link
Reference in a new issue