Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy button to "Task Templates" page #297

Merged
merged 6 commits into from
Mar 15, 2017
Merged

Add copy button to "Task Templates" page #297

merged 6 commits into from
Mar 15, 2017

Conversation

laeshiny
Copy link
Contributor

Fix #259

if the user clicks the copy button, semaphore opens the adding modal with the filled same content (Playbook Alias, Playbook Name, SSH Key, Inventory, Playbook Repository, Environment and Extra CLI Arguments)
there is no criteria that separate between pages.
 if apply css to the specific page, use this class
@@ -126,6 +126,30 @@ define(['controllers/projects/taskRunner'], function () {
})
}

$scope.copy = function (template) {
var tpl = angular.copy(template);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please reformat to the file (can see indentation differences here) :)

Copy link
Contributor Author

@laeshiny laeshiny Mar 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh... I'm sorry and thank you for your review. I correct to reformat :)
My ide default setting about tab was different with the source file. I changed it now

@matejkramny matejkramny merged commit 596e8bb into semaphoreui:develop Mar 15, 2017
@laeshiny laeshiny deleted the develop branch March 15, 2017 01:36
@laeshiny laeshiny restored the develop branch March 15, 2017 14:43
matejkramny added a commit that referenced this pull request Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants