mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
Adding commit button
This commit is contained in:
parent
2bc6b2995d
commit
968efed6c3
3 changed files with 33 additions and 2 deletions
|
@ -20,6 +20,23 @@ angular.module('dockerui.services', ['ngResource'])
|
|||
rename: {method: 'POST', params: {id: '@id', action: 'rename'}, isArray: false}
|
||||
});
|
||||
})
|
||||
.factory('ContainerCommit', function ($resource, $http, Settings) {
|
||||
'use strict';
|
||||
return {
|
||||
commit: function (params, callback) {
|
||||
$http({
|
||||
method: 'POST',
|
||||
url: Settings.url + '/commit',
|
||||
params: {
|
||||
'container': params.id,
|
||||
'repo': params.repo
|
||||
}
|
||||
}).success(callback).error(function (data, status, headers, config) {
|
||||
console.log(error, data);
|
||||
});
|
||||
}
|
||||
};
|
||||
})
|
||||
.factory('ContainerLogs', function ($resource, $http, Settings) {
|
||||
'use strict';
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue