* Refactor upgrade view of instance,adjust lang file of instance.
This commit is contained in:
@@ -474,7 +474,7 @@ class InstanceModel extends model
|
||||
case 'uninstall':
|
||||
return !in_array($instance->status, array('destroying'));
|
||||
case 'visit':
|
||||
return $instance->status == 'running' or $instance->status == 'upgrading';
|
||||
return $instance->status == 'running';
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -2049,7 +2049,7 @@ class InstanceModel extends model
|
||||
if($action == 'stop') return empty($instance->type) ? $this->canDo('stop', $instance) : false;
|
||||
if($action == 'uninstall') return empty($instance->solution) && $this->canDo('uninstall', $instance);
|
||||
if($action == 'visit') return empty($instance->type) ? ($instance->domain && $this->canDo('visit', $instance)) : true;
|
||||
if($action == 'upgrade') return !empty($instance->latestVersion);
|
||||
if($action == 'upgrade') return true || !empty($instance->latestVersion);
|
||||
if($action == 'bindUser') return empty($instance->type) ? false : true;
|
||||
if($action == 'edit') return empty($instance->type) ? false : true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user