mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(jshint): fix lint issues
This commit is contained in:
parent
9f12cbd43d
commit
631b29eddc
3 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ angular.module('containers', [])
|
||||||
angular.forEach($scope.containers, function (container) {
|
angular.forEach($scope.containers, function (container) {
|
||||||
if (container.Metadata) {
|
if (container.Metadata) {
|
||||||
var containerRC = container.Metadata.ResourceControl;
|
var containerRC = container.Metadata.ResourceControl;
|
||||||
if (containerRC && containerRC.OwnerId != $scope.user.ID) {
|
if (containerRC && containerRC.OwnerId !== $scope.user.ID) {
|
||||||
angular.forEach(users, function (user) {
|
angular.forEach(users, function (user) {
|
||||||
if (containerRC.OwnerId === user.Id) {
|
if (containerRC.OwnerId === user.Id) {
|
||||||
container.Owner = user.Username;
|
container.Owner = user.Username;
|
||||||
|
|
|
@ -114,7 +114,7 @@ function ($q, $scope, $stateParams, $state, Service, ServiceHelper, Messages, Pa
|
||||||
angular.forEach($scope.services, function (service) {
|
angular.forEach($scope.services, function (service) {
|
||||||
if (service.Metadata) {
|
if (service.Metadata) {
|
||||||
var serviceRC = service.Metadata.ResourceControl;
|
var serviceRC = service.Metadata.ResourceControl;
|
||||||
if (serviceRC && serviceRC.OwnerId != $scope.user.ID) {
|
if (serviceRC && serviceRC.OwnerId !== $scope.user.ID) {
|
||||||
angular.forEach(users, function (user) {
|
angular.forEach(users, function (user) {
|
||||||
if (serviceRC.OwnerId === user.Id) {
|
if (serviceRC.OwnerId === user.Id) {
|
||||||
service.Owner = user.Username;
|
service.Owner = user.Username;
|
||||||
|
|
|
@ -99,7 +99,7 @@ function ($scope, $state, Volume, Messages, Pagination, ModalService, Authentica
|
||||||
angular.forEach($scope.volumes, function (volume) {
|
angular.forEach($scope.volumes, function (volume) {
|
||||||
if (volume.Metadata) {
|
if (volume.Metadata) {
|
||||||
var volumeRC = volume.Metadata.ResourceControl;
|
var volumeRC = volume.Metadata.ResourceControl;
|
||||||
if (volumeRC && volumeRC.OwnerId != $scope.user.ID) {
|
if (volumeRC && volumeRC.OwnerId !== $scope.user.ID) {
|
||||||
angular.forEach(users, function (user) {
|
angular.forEach(users, function (user) {
|
||||||
if (volumeRC.OwnerId === user.Id) {
|
if (volumeRC.OwnerId === user.Id) {
|
||||||
volume.Owner = user.Username;
|
volume.Owner = user.Username;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue