mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 11:19:40 +02:00
refactor(portainer): remove offline mode [EE-4348] (#7761)
Co-authored-by: deviantony <anthony.lapenna@portainer.io>
This commit is contained in:
parent
61e8e68c31
commit
75f40fe485
39 changed files with 28 additions and 311 deletions
|
@ -1,5 +1,3 @@
|
|||
import { isOfflineEndpoint } from '@/portainer/helpers/endpointHelper';
|
||||
|
||||
angular.module('portainer.docker').controller('HostViewController', [
|
||||
'$q',
|
||||
'SystemService',
|
||||
|
@ -16,7 +14,6 @@ angular.module('portainer.docker').controller('HostViewController', [
|
|||
ctrl.state = {
|
||||
isAgent: false,
|
||||
isAdmin: false,
|
||||
offlineMode: false,
|
||||
};
|
||||
|
||||
this.engineDetails = {};
|
||||
|
@ -40,7 +37,6 @@ angular.module('portainer.docker').controller('HostViewController', [
|
|||
.then(function success(data) {
|
||||
ctrl.engineDetails = buildEngineDetails(data);
|
||||
ctrl.hostDetails = buildHostDetails(data.info);
|
||||
ctrl.state.offlineMode = isOfflineEndpoint(ctrl.endpoint);
|
||||
ctrl.jobs = data.jobs;
|
||||
|
||||
if (ctrl.state.isAgent && agentApiVersion > 1 && ctrl.state.enableHostManagementFeatures) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue