mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 04:58:32 +00:00
Code cleanup in Backup
Whitespace removal and consolidating VZDump's job id format into a local variable. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
389d3cf19b
commit
43b2494b79
@ -31,6 +31,11 @@ sub verify_day_of_week {
|
|||||||
die "invalid day '$value'\n";
|
die "invalid day '$value'\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $vzdump_job_id_prop = {
|
||||||
|
type => 'string',
|
||||||
|
description => "The job ID.",
|
||||||
|
maxLength => 50
|
||||||
|
};
|
||||||
|
|
||||||
my $dowhash_to_dow = sub {
|
my $dowhash_to_dow = sub {
|
||||||
my ($d, $num) = @_;
|
my ($d, $num) = @_;
|
||||||
@ -207,7 +212,7 @@ __PACKAGE__->register_method({
|
|||||||
items => {
|
items => {
|
||||||
type => "object",
|
type => "object",
|
||||||
properties => {
|
properties => {
|
||||||
id => { type => 'string' },
|
id => $vzdump_job_id_prop
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
links => [ { rel => 'child', href => "{id}" } ],
|
links => [ { rel => 'child', href => "{id}" } ],
|
||||||
@ -304,11 +309,7 @@ __PACKAGE__->register_method({
|
|||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {
|
properties => {
|
||||||
id => {
|
id => $vzdump_job_id_prop
|
||||||
type => 'string',
|
|
||||||
description => "The job ID.",
|
|
||||||
maxLength => 50,
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => {
|
returns => {
|
||||||
@ -344,11 +345,7 @@ __PACKAGE__->register_method({
|
|||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {
|
properties => {
|
||||||
id => {
|
id => $vzdump_job_id_prop
|
||||||
type => 'string',
|
|
||||||
description => "The job ID.",
|
|
||||||
maxLength => 50,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => { type => 'null' },
|
returns => { type => 'null' },
|
||||||
@ -397,11 +394,7 @@ __PACKAGE__->register_method({
|
|||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => PVE::VZDump::json_config_properties({
|
properties => PVE::VZDump::json_config_properties({
|
||||||
id => {
|
id => $vzdump_job_id_prop,
|
||||||
type => 'string',
|
|
||||||
description => "The job ID.",
|
|
||||||
maxLength => 50,
|
|
||||||
},
|
|
||||||
starttime => {
|
starttime => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
description => "Job Start time.",
|
description => "Job Start time.",
|
||||||
|
@ -410,11 +410,11 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var win = Ext.create('PVE.dc.BackupEdit',{
|
var win = Ext.create('PVE.dc.BackupEdit', {
|
||||||
jobid: rec.data.id
|
jobid: rec.data.id
|
||||||
});
|
});
|
||||||
win.on('destroy', reload);
|
win.on('destroy', reload);
|
||||||
win.show();
|
win.show();
|
||||||
};
|
};
|
||||||
|
|
||||||
var run_backup_now = function(job) {
|
var run_backup_now = function(job) {
|
||||||
|
Loading…
Reference in New Issue
Block a user