2021-06-14 06:59:07 +00:00
|
|
|
<ng-form ng-if="service.EnvironmentVariables" id="service-env-variables" name="serviceEnvForm">
|
2017-03-20 20:28:09 +00:00
|
|
|
<rd-widget>
|
2022-07-19 03:29:50 +00:00
|
|
|
<rd-widget-header icon="list" feather-icon="true" title-text="Environment variables">
|
2019-05-24 06:04:58 +00:00
|
|
|
<div class="nopadding" authorization="DockerServiceUpdate">
|
2022-08-12 03:47:56 +00:00
|
|
|
<a class="btn btn-secondary btn-sm pull-right" ng-click="isUpdating || addEnvironmentVariable(service)" ng-disabled="isUpdating">
|
2022-08-18 10:56:37 +00:00
|
|
|
<pr-icon icon="'plus'" feather="true"></pr-icon> environment variable
|
2017-03-20 20:28:09 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</rd-widget-header>
|
|
|
|
<rd-widget-body ng-if="service.EnvironmentVariables.length === 0">
|
|
|
|
<p>There are no environment variables for this service.</p>
|
|
|
|
</rd-widget-body>
|
2021-06-14 06:59:07 +00:00
|
|
|
<rd-widget-body ng-if="service.EnvironmentVariables.length > 0">
|
|
|
|
<environment-variables-panel is-name-disabled="true" ng-model="service.EnvironmentVariables" on-change="(onChangeEnvVars)"></environment-variables-panel>
|
2017-03-20 20:28:09 +00:00
|
|
|
</rd-widget-body>
|
2019-05-24 06:04:58 +00:00
|
|
|
<rd-widget-footer authorization="DockerServiceUpdate">
|
2017-03-20 20:28:09 +00:00
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
<div class="btn-group" role="group">
|
2021-06-14 06:59:07 +00:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn btn-primary btn-sm"
|
|
|
|
ng-disabled="!hasChanges(service, ['EnvironmentVariables']) || serviceEnvForm.$invalid"
|
|
|
|
ng-click="updateService(service)"
|
|
|
|
>
|
|
|
|
Apply changes
|
|
|
|
</button>
|
2017-03-20 20:28:09 +00:00
|
|
|
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a ng-click="cancelChanges(service, ['EnvironmentVariables'])">Reset changes</a></li>
|
|
|
|
<li><a ng-click="cancelChanges(service)">Reset all changes</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</rd-widget-footer>
|
|
|
|
</rd-widget>
|
2021-06-14 06:59:07 +00:00
|
|
|
</ng-form>
|